GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): report inactivity eviction in interrupted work by thiago-carneiro · Pull Request #52587 · anomalyco/opencode

Conversation

@thiago-carneiro

@thiago-carneiro thiago-carneiro commented Oct 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Issue for this PR

Closes #52597

Type of change

  • Bug fix

What does this PR do?

When idle location eviction interrupts a run, unsettled tool failures report the generic "Tool execution interrupted" — the reason never reaches the message. The run coordinator already records the interruption reason, so I thread it into the unsettled-tool failure message: an eviction-caused interruption now says "Tool execution interrupted: location idle eviction"; user- and shutdown-caused ones keep today's wording. Reporting only — the eviction policy and the hardcoded 60-minute deadline are #51343's questions.

The close-path surface (pending forms cancelled when the location closes, e.g. the "Interaction cancelled because the location shut down" case in #51647) keeps its current wording; I'll follow up with the close-path failure and the question content in that message.

How did you verify your code works?

  • bun run test (packages/core, full suite): 5272 passing, 0 failing, including two new cases in session-runner.test.ts — an eviction-caused interrupt asserts the eviction message, a user-caused one keeps the generic wording
  • Targeted suites (session-step, session-runner, recorded, run-coordinator, execution, location-activity): 292/292
  • bun turbo typecheck: 36/36 packages; bunx oxlint: 0 errors
  • bun run check: all tasks pass (ran in a container — my host's glibc 2.28 predates what the ast-grep binary needs; the same failure occurs on a pristine checkout, so it is environmental)

To confirm the fix: park a session on question, interrupt with reason: "inactivity" (or wait out the 60-minute idle deadline) — the tool failure now names the eviction.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Thiago Pacheco Carneiro
fix(core): report inactivity eviction in interrupted work
7dbc259
@github-actions github-actions Bot added the needs:issue label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Oct 1, 2026
📊 AI CLI 工具社区动态日报 2026-10-02 litang9/big_model_radar#483
Open
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 2, 2026
fix(core): honest close-path state when eviction cancels pending questions #52600
Closed
core: tool failure message loses the reason when the 60m idle eviction interrupts a run #52597
Closed
@SamSpiri

SamSpiri commented Oct 3, 2026

Copy link
Copy Markdown

Supporting the reporting side — this would have made a real incident much easier to diagnose.

On v2.0.22 a background: true shell job outlived its location's 60-min idle TTL; eviction interrupted the location-scoped completion watcher, so no completion notification was ever delivered and the session stayed idle for 70 min. Nothing anywhere surfaced the word "inactivity" or tied it to the eviction — it looked like a generic stall and took a DB dig to find the zero synthetic row.

Surfacing the reason: "inactivity" interruption reason (already passed at location-activity.ts:65) in the affected work's failure/interruption message is exactly the missing signal. Fine to keep policy in #51343, but the reporting part is worth landing independently.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:26
@github-actions github-actions Bot removed the needs:issue label Oct 10, 2026
This was referenced Oct 10, 2026
session: location inactivity interrupt aborts pending question with "Tool execution interrupted" #54404
Closed
[FEATURE]: make the 60m location inactivity TTL configurable (or opt-out) #55305
Closed
@opencode-agent opencode-agent Bot mentioned this pull request Oct 24, 2026
session: in-flight tool calls aborted (Interaction cancelled because the location shut down) #58650
Closed
@opencodejr opencodejr Bot mentioned this pull request Oct 28, 2026
core: pending question forms cancelled by a location close get no cause or question content #52599
Open
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Nov 2, 2026
@github-actions github-actions Bot added the automated-pr-cleanup label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automated-pr-cleanup

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

core: tool failure message loses the reason when the 60m idle eviction interrupts a run

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@thiago-carneiro @SamSpiri
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.