symcc

Idea: answer the lead's pop-up question from the board #

Kept from task T-401.

Question #

Can symcc answer the lead's pop-up question (AskUserQuestion) from the board, using a tool.call or ui.render hook, so the dialog closes when the owner answers on the board?

Answer #

Yes. A plugin's tool.call hook on AskUserQuestion can open the normal dialog by calling next(e), then answer the question itself before the owner clicks. The engine closes the open dialog on its own. The model reads the plugin's answer as if the owner had picked it, and the chat shows "User answered Claude's questions: ... -> Blue". So symcc could keep the pop-up buttons and have the dialog close when the owner answers on the board. ui.render is not needed.

What exists (from the type files) #

Not checked #

Only worth building if the owner misses the pop-up buttons. If so, make a small change in hooks/register.tsx (the existing tool.call hook) and hooks/app/questions.ts:

How it was found #

A throwaway plugin in /tmp was run interactively in tmux on Claude Code 2.1.319 (claude --plugin-dir ... --model haiku, installed symcc turned off). The hook opened the dialog with next(e) and raced it against a timer standing in for a board answer. If the timer won, the hook returned the answer "Blue". Three runs:

  1. Timer after 8 s: the dialog closed by itself and the model replied "You answered: Blue." The next(e) call underneath ended with core's "The user doesn't want to proceed..." rejection, but the hook's answer counted.
  2. Enter pressed in the dialog first: next(e) returned the normal result ("Red"). The hook passed it on, so it can see the dialog answer and close the matching board question.
  3. Timer after 25 s (past the 10-second budget): same result. Long waits are fine.

The probe files were deleted and the worktree had no changes.