Skip to content

Comments

Sub agent support#2703

Merged
abose merged 6 commits intomainfrom
zz
Feb 23, 2026
Merged

Sub agent support#2703
abose merged 6 commits intomainfrom
zz

Conversation

@abose
Copy link
Member

@abose abose commented Feb 23, 2026

No description provided.

Add support for the Claude SDK's AskUserQuestion tool so the AI can ask
clarifying questions with clickable option buttons instead of showing
raw tool output. Includes single-select, multi-select, and free-text
"other" input. Answers are sent back to the SDK via a PreToolUse hook.
Enable the Task tool so the AI can spawn researcher and coder subagents
for focused subtasks. Render subagent invocations in the chat UI with
a dedicated icon, label, and expandable description.
…P tooling

- Replace JPEG image compression with two-phase WebP strategy that
  preserves quality better (quality reduction first, then dimension
  scaling as last resort), bump limit to 200KB
- Add Bash, TodoRead, TodoWrite, WebFetch, WebSearch to allowedTools
  to prevent Claude Code process exit code 1 from permission blocking
- Add purePreview param to takeScreenshot MCP tool to capture live
  preview without element highlight overlays/toolboxes
- Add logging to controlEditor for debugging file open failures
Keep the textarea enabled while AI is responding so users can type
a follow-up clarification mid-turn. Queued messages are injected into
Claude's context via tool response hints and a new getUserClarification
MCP tool, letting Claude incorporate feedback naturally without waiting
for the turn to end.

- Add queueClarification/getAndClearClarification/clearClarification
  node endpoints with image support
- Add getUserClarification MCP tool and clarification hints on all
  tool responses (both hook-based and MCP)
- Static queue bubble above input area with Edit button
- Auto-send queued message as next turn if not consumed mid-turn
- Show consumed clarification as user message bubble in chat
Clear _queuedClarification at the start of sendPrompt to prevent
text from a previous turn leaking into the next clarification read.
Also change getUserClarification tool icon color to green (#6bc76b)
to match Read file tool bubbles.
When the Claude process exits with code 1, disable the textarea and
send button, move any queued message back to the textarea, and show
an inline New Chat button. Clicking it starts a fresh session while
preserving the textarea content so the user can re-send.
@sonarqubecloud
Copy link

@abose abose merged commit 90dbb18 into main Feb 23, 2026
17 of 21 checks passed
@abose abose deleted the zz branch February 23, 2026 12:15
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