Skip to content

fix(cloud-agent): tolerate interrupt errors during claude session refresh#2463

Merged
tatoalo merged 1 commit into
mainfrom
fix/cloud-agent-refresh-session-subprocess
Jun 2, 2026
Merged

fix(cloud-agent): tolerate interrupt errors during claude session refresh#2463
tatoalo merged 1 commit into
mainfrom
fix/cloud-agent-refresh-session-subprocess

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Jun 2, 2026

Problem

recently observer that a follow-up message reached the agent-server but was instantly aborted ("Operation aborted"`), and every subsequent message failed the same way (surfacing in the client as a queue failure).

claude adapter's refreshSession aborts the live query's AbortController, then awaits prev.query.interrupt() before installing the fresh controller/query

Changes

  • wrap await prev.query.interrupt() in try/catch so tearing down the old query can't abort the swap. Keeps the abort-first ordering; brings the claude adapter to parity with codex (which works with the guard already)

@tatoalo tatoalo self-assigned this Jun 2, 2026
@tatoalo tatoalo marked this pull request as ready for review June 2, 2026 13:41
@tatoalo tatoalo added the Create Release This will trigger a new release label Jun 2, 2026
@tatoalo tatoalo requested a review from a team June 2, 2026 13:41
@tatoalo tatoalo enabled auto-merge (squash) June 2, 2026 13:42
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 2, 2026

Reviews (1): Last reviewed commit: "fix(cloud-agent): tolerate interrupt err..." | Re-trigger Greptile

@tatoalo tatoalo merged commit 536be50 into main Jun 2, 2026
21 checks passed
@tatoalo tatoalo deleted the fix/cloud-agent-refresh-session-subprocess branch June 2, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Create Release This will trigger a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants