Skip to content

fix(tui): surface silent background task completions - #222

Merged
kingsword09 merged 3 commits into
kingsword09:mainfrom
tae9898:fix/silent-background-tasks
Oct 19, 2026
Merged

kingsword09 merged 3 commits into
kingsword09:mainfrom
tae9898:fix/silent-background-tasks

Conversation

@tae9898

@tae9898 tae9898 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Two paths let a finished background task disappear silently. A turn handed off from a completed task is task-scoped out of the main transcript, so its response was only reachable from /tasks and the assistant appeared to ignore the completion notice; render the settled handoff response in the transcript instead. And on session resume, restored tasks whose terminal notifications were already delivered in the conversation were re-announced as fresh system events; classify restored tasks against the transcript and skip the ones a prior turn already consumed.

image

Two paths let a finished background task disappear silently. A turn
handed off from a completed task is task-scoped out of the main
transcript, so its response was only reachable from /tasks and the
assistant appeared to ignore the completion notice; render the settled
handoff response in the transcript instead. And on session resume,
restored tasks whose terminal notifications were already delivered in
the conversation were re-announced as fresh system events; classify
restored tasks against the transcript and skip the ones a prior turn
already consumed.

Change-Id: Ia18ac9696142b07e0e7a95c4fdba446cec93c76f
@tae9898
tae9898 marked this pull request as draft October 19, 2026 02:26
The feature smoke guarded the old contract where every task-scoped
string stayed out of the foreground transcript, so the handoff
rendering from f8b393b fails CI on its own fixture text. Assert the
settled responses appear in the transcript now, while reasoning, tool
names, and nested agent trees must still stay scoped to /tasks.

Change-Id: I5c6b840901247c352d518842d31b7338240031d0
@github-actions

Copy link
Copy Markdown
Contributor

pkg-pr-new preview for commit b8b709e9eedb1c942bf3dff98235ef6dc0c720dc.

npx --yes https://pkg.pr.new/zcode-app-cli@b8b709e

Full repository URL

This preview uses the selected commit. PR updates publish automatically after CI succeeds; kingsword09 can also request a preview with /pkg-pr-new.

Workflow logs

@tae9898

tae9898 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

The feature smoke asserted the pre-existing contract that no task-scoped string reaches the foreground
transcript; this PR intentionally relaxes exactly that for the settled handoff response, so the smoke now
requires it while still forbidding reasoning, tool names, and nested agent trees.

@tae9898
tae9898 marked this pull request as ready for review October 19, 2026 04:32
@github-actions

Copy link
Copy Markdown
Contributor

pkg-pr-new preview for commit 50685c82c075f65ad7ef4713457ef83c214d0c50.

npx --yes https://pkg.pr.new/zcode-app-cli@50685c8

Full repository URL

This preview uses the selected commit. PR updates publish automatically after CI succeeds; kingsword09 can also request a preview with /pkg-pr-new.

Workflow logs

@kingsword09
kingsword09 merged commit 12b1cf7 into kingsword09:main Oct 19, 2026
5 checks passed
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.

2 participants