Skip to content

desktop: question tool aborts with 'location shut down', owner decision controls never render #51647

Closed as not planned

Description

@JavaGT

The question tool aborts with Interaction cancelled because the location shut down in the desktop app, making it impossible to collect a decision from the owner.

Environment

  • Client: OpenCode desktop app (ai.opencode.desktop, bundle /Applications/OpenCode.app)
  • Server: 2.0.16, pid 90359, http://127.0.0.1:49374
  • CLI binary: 2.0.18
  • macOS (darwin)

Reproduction

  1. Run a session in the desktop app.
  2. Call the question tool with any question and options.
  3. Observe the tool result: {"error":{"type":"aborted","message":"Interaction cancelled because the location shut down","content":[]}}

The control never renders, so no answer can be given.

Occurrences — 2 consecutive, in the same session, with the server restarting between them:

  • attempt 1, after the server had just restarted
  • attempt 2, after a second server restart

Impact
Any workflow that relies on the question tool to present owner decision controls (Adopt/Adapt/Reject, A/B/C options) is unusable in the desktop app. The only fallback is plain prose in the assistant message, which loses the structured, nothing-pre-selected control that decision requests depend on.

Suspected cause
The abort message suggests the question's owning "location" is being torn down — plausibly a lifecycle/race issue between the question control's location and the desktop app's session or server lifecycle, rather than an owner cancellation. Note the two failures both coincided with a server restart, which may be relevant.

Question
Is this a known limitation of the desktop client, or a bug? If it is a race with server restart, it would be good to have it fail loudly (or retry) rather than silently aborting the interaction.

Activity

  1. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor

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

    • #36347: Pending question and permission waits are lost when the server restarts in V2.
    • #36585: Pending TUI forms become unanswerable after a managed-service restart.
    • #51343: Location eviction interrupts a running session and rejects pending questions.
  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the report! The error Interaction cancelled because the location shut down comes up when the server (or the project location) shuts down while a question is still waiting for an answer. Shutting down closes every pending question, permission prompt and form, so a question that is open during a server restart is cancelled on purpose.

    Both of your failures happened around a server restart, so to tell whether this is a bug we need a few details in your own words:

    1. Why did the server restart? Did you restart it or quit and reopen the app, did it crash on its own, or did something else trigger it (for example changing settings or config files)?
    2. When was the question asked? Was it before or during the restart, or some time after the server was back up and running normally?
    3. Does the question tool work when no restart happens? For example, start a new session in the desktop app and ask the agent to ask you a simple question with two options.
    4. Does it still happen on the latest version? Your server reported 2.0.16 while the CLI is 2.0.18. Several fixes to shutdown and location handling have landed since then, so please update the desktop app (latest is 2.2.0) and try again.
    5. If the server is restarting unexpectedly, please attach the desktop app and server logs from around that time.

    You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.

  3. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    We're closing this issue for now because we haven't heard back on the questions above. The error Interaction cancelled because the location shut down comes up when the server or project location shuts down while a question is still waiting for an answer. Both of your failures happened around a server restart, and without more details we can't tell whether this is expected behaviour or a bug.

    If it still happens on the latest desktop app (2.2.0), please comment here and we'll reopen it. It would help to know why the server restarted, whether the question tool fails even when no restart happens, and to have the app and server logs from around that time. Thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions