8000 feat(web): type a machine or model name, press Tab to make it a chip by DominikScholz · Pull Request #5 · DominikScholz/t3code · GitHub
[go: up one dir, main page]

Skip to content

feat(web): type a machine or model name, press Tab to make it a chip - #5

Open
DominikScholz wants to merge 3414 commits into
mainfrom
feat/composer-inline-completions
Open

DominikScholz wants to merge 3414 commits into
mainfrom
feat/composer-inline-completions

Conversation

@DominikScholz
@DominikScholz DominikScholz commented Nov 6, 2026 •
Copy link
Copy Markdown
Owner

Naming a machine or model meant typing @, finding it in a menu, and clicking. It should work like code completion: start typing the name and it's already there. Now, from the third letter and with no @, the rest of the name appears as gray text after the cursor. Tab turns it into a chip that tells the agent exactly which one you mean, and Esc dismisses it.

This one is opinionated: Tab means "accept" while a suggestion is showing. It keeps its usual meaning otherwise, and nothing is inserted unless you press it.

Before After
before after
  • The ghost text is a ProseMirror decoration, so it updates in the same frame as the keystroke and adds no React state. Only typing proposes a name: moving the caret, pasting, undoing and restoring a draft don't.
  • Model chips use the existing unknown-kind record shape instead of a new contract kind, so older servers and clients already accept them. The agent gets the provider instance and model to pass to delegate_task.
  • Machines are only offered with the Linked environments beta on, same as the @ menu.
  • Web and desktop only. A React Native text input has no ghost text or Tab key, so mobile doesn't offer completions.
  • There is no settings toggle.

Proof: composerInlineSuggestion.test.ts, a browser test covering draw, Tab, Esc, paste and formatting boundaries, and a draft-persistence test. I also drove it in the running app and sent through the replay provider, where both chips rendered in the timeline with the right records. The video was captured at 1/3 speed for smooth playback, then sped back up. vp run check:changed passes. The model chip's guidance is model-facing and the paid evals were not run, since no API keys were available.

Reviewed with sol-loop: 2 rounds with gpt-6.1-sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 6, 2026
@DominikScholz
DominikScholz force-pushed the feat/composer-inline-completions branch from f252cf0 to a7b5762 Compare November 6, 2026 11:25
@github-actions github-actions Bot added size:XXL and removed size:L labels Nov 6, 2026
Sidreyas and others added 25 commits November 20, 2026 20:54
…checkout (pingdotgg#37191)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… errors (pingdotgg#40042)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…40020)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…asked for a result (pingdotgg#40137)

Co-authored-by: MarcoDotIO <Marcus.Arnett10@gmail.com>
…ding (pingdotgg#39989)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…dotgg#29089)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ffs (pingdotgg#40152)

Co-authored-by: MarcoDotIO <Marcus.Arnett10@gmail.com>
lln556 and others added 29 commits November 22, 2026 04:43
…usage frames (pingdotgg#40804)

Co-authored-by: lvning.liu <lvning.liu@weimob.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…pingdotgg#40830)

Co-authored-by: lvning.liu <lvning.liu@weimob.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ad of stepping through stale states (pingdotgg#27401)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#40841)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#27391)

Co-authored-by: Enmani <43571965+Enmani@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…on (pingdotgg#21667)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Wout Stiens <71498452+StiensWout@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#40874)

Co-authored-by: Abhiram-745 <237478249+Abhiram-745@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nder its full name (pingdotgg#40877)

Co-authored-by: Abhiram-745 <237478249+Abhiram-745@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…l finds no match (pingdotgg#40886)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Abhiram-745 <237478249+Abhiram-745@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#40858)

Co-authored-by: LVC-Chakresh <chakresh@example.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…as "1024.0 MiB" (pingdotgg#40952)

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
…0951)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#40965)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
From the third letter and with no @, the rest of a machine or model name
appears as ghost text after the caret. Tab turns it into the same chip the
@ menu inserts, and Esc dismisses it. Only typing proposes a name: caret
moves, pastes, undo, restored drafts and Markdown-source normalization do
not, and nothing is offered while a composer menu is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DominikScholz
DominikScholz force-pushed the feat/composer-inline-completions branch from ac3097a to fb6412b Compare November 22, 2026 19:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0