Skip to content

fix: archive a parked question before its reply - #2616

Merged
EItanya merged 3 commits into
mainfrom
Charlesthebird/archiveParkedQuestion
Aug 28, 2026
Merged

fix: archive a parked question before its reply#2616
EItanya merged 3 commits into
mainfrom
Charlesthebird/archiveParkedQuestion

Conversation

@Charlesthebird

@Charlesthebird Charlesthebird commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Before there was a bug where the agent question disappears from the chat:

Screen.Recording.2026-08-28.at.10.11.50.AM.mov

After, this is now stable across refreshes:

Screen.Recording.2026-08-28.at.10.56.34.AM.mov

🤖 written by Claude (start)

Changelog

An agent's question no longer disappears from the transcript once you answer it: a parked task holds the question in its status, which the reply replaces, so it is now archived as history first.

Testing

  1. Ask an agent to ask you a question, and answer it through the prompt.
  2. Reload the page — the question is still there, above your answer.

🤖 written by Claude (end)

An agent that stops to ask something parks the task with the question in its
`status`, not in its history. Answering replaces that status, and the store
writes down the messages each event names rather than the history of the task it
is handed — so the question was written nowhere and vanished from the transcript
on the next read. The copy still on screen was then appended below the answer it
preceded, because a merge keeps what the server did not send.

The question is now stored in its own right, and before the reply, because
history is ordered by insertion.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Aug 28, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Aug 28, 2026
@Charlesthebird
Charlesthebird marked this pull request as ready for review August 28, 2026 15:00
@Charlesthebird
Charlesthebird requested a review from a team as a code owner August 28, 2026 15:00
@Charlesthebird
Charlesthebird requested a review from EItanya August 28, 2026 15:07
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Comment thread go/core/v2/a2agateway/gateway_test.go Outdated
t.Fatalf("reply result = %#v, runtime sent = %v", result, runtime.sent)
}
if authorizer.verb != auth.VerbUpdate || reply.ContextID != gatewayTestID || len(store.stored) != 2 {
// Three: the question the task was parked on, the reply, and the finished turn.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha yeah I don't know

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might've been some checklist item it was talking about to itself.
but I tested it after your changes and it's still working - thanks for updating it!

@EItanya
EItanya merged commit be4d7aa into main Aug 28, 2026
23 of 24 checks passed
@EItanya
EItanya deleted the Charlesthebird/archiveParkedQuestion branch August 28, 2026 15:35
EItanya added a commit that referenced this pull request Aug 28, 2026
Follow-up to #2616. Documents the invariant that state and history for
one logical transition must be computed before persistence and committed
in one store transaction. It also keeps preparatory writes out of
transport code and requires malformed durable data to be rejected.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants