Skip to content

fix(acp): preserve session on cancel, filter tool_use markers#788

Merged
bug-ops merged 1 commit intomainfrom
fix/acp-cancel-and-tool-markers
Feb 24, 2026
Merged

fix(acp): preserve session on cancel, filter tool_use markers#788
bug-ops merged 1 commit intomainfrom
fix/acp-cancel-and-tool-markers

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 24, 2026

Summary

  • Cancel no longer removes the session entry — the IDE reuses the same session_id for subsequent prompts, preventing "session not found" errors after cancellation
  • Filter raw [tool_use: ...] markers from streaming chunks so LLM tool call metadata is not rendered as plain text in the IDE conversation panel

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --workspace -- -D warnings — pass
  • cargo nextest run --workspace --lib --bins — 2555 passed
  • Manually tested in Zed: cancel mid-response then send new prompt — no error

Cancel no longer removes the session entry — the IDE reuses the same
session_id for subsequent prompts after cancellation.

Filter raw `[tool_use: ...]` markers from streaming chunks so they
are not rendered as plain text in the IDE conversation panel.
@github-actions github-actions bot added rust bug Something isn't working size/S labels Feb 24, 2026
@bug-ops bug-ops merged commit d606f4a into main Feb 24, 2026
20 checks passed
@bug-ops bug-ops deleted the fix/acp-cancel-and-tool-markers branch February 24, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rust size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant