Skip to content

Return Claude’s final answer to the calling agent - #1060

Merged
Kuddev merged 1 commit into
mainfrom
fix/claude-delegation-result-1120
Nov 20, 2026
Merged

Kuddev merged 1 commit into
mainfrom
fix/claude-delegation-result-1120

Conversation

@Kuddev

@Kuddev Kuddev commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Claude Code sends its final answer in the Stop hook. Pebrel already parses that field for the answer reader, but a delegated task could report that no final message was available. The callback now returns the parsed answer to the calling pane and falls back to the existing provider diagnostic when needed.

Extracted from @yjjheizhu's #919. The regression covers the real hook parser and queued callback, including escaped text, the 4,000-character output limit, a provider error and a completion with no answer. The existing Codex callback test also runs in native CI. Architecture and workspace formatting passed locally. The local test launcher stopped before compilation because free disk space was below its 5 GiB minimum.

@github-actions github-actions Bot added the size/S ≤100 行源码改动 label Nov 20, 2026
@Kuddev
Kuddev merged commit efba1ce into main Nov 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S ≤100 行源码改动

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants