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 — core: pending question forms cancelled by a location close get no cause or question content · Issue #52599 · anomalyco/opencode

core: pending question forms cancelled by a location close get no cause or question content #52599

New issue
Copy link
New issue
Copy link
Open
Open
core: pending question forms cancelled by a location close get no cause or question content#52599
Copy link
Assignees
jlongster

Description

@thiago-carneiro
thiago-carneiro
opened on Oct 2, 2026
Issue body actions

Description

When a location is evicted after 60 idle minutes, its pending question forms are cancelled when the location closes, with a bare { status: "cancelled" } — no reason, no content. The client that rendered the form sees the question cancel silently: the state does not say that the location was evicted, or which question was pending. In the tool failure reported back to the model, a close-caused cancel says only "Interaction cancelled because the location shut down" (#51647's symptom) — again without the pending question content.

The close path has no way to record why it is cancelling: Form.close cancels every pending form with no options, and the cancelled state has nowhere to carry a cause or the pending question content.

This issue is about the cancellation state and message, not the eviction policy — the policy is discussed in #51343, and restoring pending forms across reconnects is a separate issue (#44471).

OpenCode version

2.0.8

Steps to reproduce

  1. Start a session, get a question form pending, and let the session go idle (no active execution) until its location hits the 60-minute idle deadline.
  2. The location is evicted and the close cancels the pending form.
  3. Observe: the form's state is { status: "cancelled" } — no reason, no pending question content.

Expected: the cancelled state should include why it was cancelled (for eviction, cause: "evicted") and enough context to identify the pending question.

Activity

  1. github-actions
    assigned
    jlongster
    on Oct 2, 2026
  2. github-actions commented on Oct 2, 2026

    @github-actions
    github-actionsBot
    on Oct 2, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • #51343: Location eviction interrupts sessions and rejects pending questions.
    • #51647: The question tool receives the same location-shutdown cancellation message.
  3. thiago-carneiro commented on Oct 2, 2026

    @thiago-carneiro
    thiago-carneiro
    on Oct 2, 2026
    Author
    More actions

    Not a duplicate, in my view. #51343 tracks the eviction policy (whether idle eviction should interrupt active work, and the hardcoded 60-minute deadline); #51647 is about the desktop app — the question tool aborts on location shutdown and the decision controls never render. This issue is only about the cancellation state and message: when a location close cancels a pending question, the form state is a bare cancelled with no cause, and the tool failure doesn't include the pending question. #52600 fixes that narrow part.

  4. opencodejr commented on Oct 28, 2026

    @opencodejr
    opencodejrBot
    on Oct 28, 2026
    Contributor
    More actions

    Thanks for the detailed write-up! The request is for forms cancelled when a location closes, e.g. on idle eviction, to record why they were cancelled (such as cause: "evicted") and which question was pending. That information would then show up in both the client-visible state and the tool failure reported to the model.

    As things stand this works as designed: the cancelled state only has an optional message, and Form.close cancels pending forms without one. So we're treating this as an enhancement, and maintainers will consider it.

    Related issues and PRs:

    • fix(core): honest close-path state when eviction cancels pending questions #52600: open PR implementing this close-path cancellation state
    • desktop: question tool aborts with 'location shut down', owner decision controls never render #51647: the "Interaction cancelled because the location shut down" symptom
    • fix(core): report inactivity eviction in interrupted work #52587: PR to report inactivity eviction in interrupted work
    • permission: pending requests destroyed on instance disposal without revocation event; dialog unanswerable, replies 404 forever #52846: the same gap for pending permission requests
    • core: 60m idle location eviction interrupts a running session and rejects pending questions #51343: the eviction policy itself (closed)
    • tui: pending question form lost after client reconnect — unexitable modal (FormNotFoundError loop) #44471: losing a pending form after a reconnect (closed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.