Skip to content

feat(providers): add optional native prompt suggestions - #6

Draft
iXab3r wants to merge 1 commit into
mainfrom
t3/codex-context-chat-autocomplete
Draft

iXab3r wants to merge 1 commit into
mainfrom
t3/codex-context-chat-autocomplete

Conversation

@iXab3r

@iXab3r iXab3r commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Problem

T3 did not surface the next-message suggestions available in Codex and Claude's native runtimes.

Change

Add Prompt suggestions, off by default for each Codex or Claude provider instance. Codex uses its native thread/sample and remote prediction configuration; Claude uses SDK prompt_suggestion events. A shared ephemeral subscription delivers suggestions to web, desktop, and mobile. Accepting a suggestion fills the draft without submitting it.

All providers use the same rails: setPromptSuggestionsEnabled applies live settings, and prompt_suggestion.updated delivers native results. The session manager owns configuration subscriptions, cancellation coordination, cache lifetime, and the common RPC path. Native protocol differences stay in the adapters. There is no generic model fallback or persisted suggestion history.

Scope and approval

This draft targets the personal fork's main branch for owner review. It does not claim upstream maintainer approval or submit anything to upstream.

The PR now contains only feature commit 6a636e6bd4 (33 files). The unrelated Windows test-fixture portability corrections have been removed and preserved separately on bugfix/windows-test-fixtures. A future upstream branch should transplant only the feature after approval of its direction and scope.

Verification

  • Current clean feature branch: vp run check:changed origin/personal --concurrency 2 passed format, lint, knip, GraphQL, all affected-package typechecks, and React Compiler checks. Test result on Windows: 674 passed, 14 failed, 5 skipped.
  • The 14 failures are exactly the pre-existing Windows fixture failures covered by the now-excluded portability commit: 12 attachment path assertions against escaped JSON, one tool-search fixture assuming Linux, and one Linux install-path fixture receiving Windows real paths. With that independent fixture correction present, the same production change had 688 passed, 5 skipped. No prompt-suggestion regression test failed in the current run.
  • Regression tests reproduced failures before their fixes for disabling during Claude startup, blocked setting updates, cache clearing after late thread attachment, and delayed events after detach.
  • The owner verified real Codex suggestions in the isolated development UI using the installed Codex CLI and ChatGPT account.
  • Live Claude and native-mobile behavior have not been manually verified. Before/after UI screenshots and an interaction recording are not attached yet; these remain required evidence before an upstream submission.

Model: GPT-6.1 Sol. Harness: Codex in T3 Code.

@iXab3r
iXab3r force-pushed the t3/codex-context-chat-autocomplete branch from 1557b5b to 6a636e6 Compare November 1, 2026 01:30
@iXab3r
iXab3r changed the base branch from personal to main November 1, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant