You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spike: thread-owning open path for the builder review composer — dial-cancel discard needs the CommentThread handle (follow-up to #1552) #1560
Can the builder-review composer own its CommentThread handle at open time without losing input focus — so a Stream Deck dial press can discard the draft (thread.dispose()) as reliably as the visible Cancel button does?
Why this needs a spike (the #1552 findings, all empirically verified in that lane)
The dial-cancel gap is a hard native-API limit, not a wiring bug. To dispose a draft programmatically you need the CommentThread handle; the stable API only hands it over on a button click. The open path uses workbench.action.addComment because it focuses the reply input (required for dictation, and editor.action.submitComment is focus-gated) — but addComment does not return the thread, and there is no onDidCreateCommentThread and no CommentThread.reveal focus contract for this case.
workbench.action.closeActiveEditor — the comment input is a widget, NOT an editor-group editor; this closes the HOST editor (observed live: focus jumped windows). Harmful.
Submit-empty-to-trigger-the-empty-guard — unreachable: the submit action carries enablement: !commentIsEmpty.
The hypothesis to test
Open via controller.createCommentThread (handle owned → dial-cancel = thread.dispose()), then immediately invoke workbench.action.addComment at the same line, hoping it focuses the EXISTING thread's input rather than creating a second thread. That focus behavior is unverified — it is the whole spike. Secondary probes if it fails: collapsibleState manipulation + focus commands; comparing against how the plan/spec comment controllers acquire focus.
Risk that justified deferring (#1552 shipped option B)
The rework touches the open path that dictation and dial-submit depend on, both now verified working in the owner's hands. A regression there costs the load-bearing flow to gain the rare-path one (cancel is one visible click today).
If yes: a follow-up implementation issue with the verified recipe. If no: document the limit as final and consider an upstream VS Code ask; dial-cancel remains a no-op by design.
Closed as answered (vscode architect, 2026-10-05). The spike's question is resolved: the issue's hypothesis (createCommentThread then workbench.action.addComment focuses it) is false; a stable-API thread-owning open path exists (an owned editing-mode draft, recipe B), verified on VS Code 1.140 and Codev.app 1.138. Findings landed on main via PR #1776 (codev/experiments/1560-thread-owning-open-path/). Implementation is tracked in #1775 (not yet spawned). The experiment-complete gate was approved by the owner on 2026-10-05.
Activity
[PIR #1552] Ruling B: drop dial cancel from the vocabulary; button-on…
[PIR #1552] Review + retrospective
Merge pull request #1776 from cluesmith/builder/experiment-1560
amrmelsayed commentedon Oct 5, 2026
Closed as answered (vscode architect, 2026-10-05). The spike's question is resolved: the issue's hypothesis (createCommentThread then workbench.action.addComment focuses it) is false; a stable-API thread-owning open path exists (an owned editing-mode draft, recipe B), verified on VS Code 1.140 and Codev.app 1.138. Findings landed on main via PR #1776 (codev/experiments/1560-thread-owning-open-path/). Implementation is tracked in #1775 (not yet spawned). The experiment-complete gate was approved by the owner on 2026-10-05.