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 — Abort leaves orphaned task calls pending · Issue #42286 · anomalyco/opencode

Abort leaves orphaned task calls pending #42286

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Abort leaves orphaned task calls pending#42286
Copy link
Assignees
kitlangton

Description

@0xfed
0xfed
opened on Aug 13, 2026
Issue body actions

Description

If OpenCode loses the in-memory runner for a session while a task tool call is still persisted as pending or running, aborting the session only marks it idle. The parent assistant message and task part remain unfinished, so the transcript shows a task that never completed.

The TUI startup path for --continue --fork can also briefly route through a placeholder session ID (dummy), which produces an invalid-session error instead of returning to home when no session is available.

Steps to reproduce

  1. Start a session that invokes the task tool.
  2. Interrupt or restart the local runner after the task part is persisted but before it reaches a terminal state.
  3. Abort the parent session.
  4. Observe the task part still shown as pending or running and its assistant message left incomplete.

For the fork path:

  1. Run opencode --continue --fork with no resumable root session.
  2. Observe the placeholder-session validation error.

Expected behavior

Abort should cancel any live runner, then settle orphaned task parts with an aborted error and complete their parent assistant message. --continue --fork should show a loading state and return home with an error when no session can be forked.

Plugins

None

OpenCode version

1.18.x

Operating System

Linux

Terminal

Terminal emulator

Activity

  1. github-actions
    assigned
    kitlangton
    on Aug 13, 2026
  2. 0xfed commented on Aug 13, 2026

    @0xfed
    0xfed
    on Aug 13, 2026
    Author
    More actions

    Related reports:

    • TUI shows server error on --continue --fork: Expected a string starting with "ses", got "dummy" #29262 previously reported the --continue --fork startup request using the dummy placeholder session ID. This fix avoids entering that route while the fork target is unresolved.
    • fix: orphan sub-sessions not cleaned up when parent aborts #37314 covers the broader lifecycle problem of child sub-sessions surviving a parent abort. This issue is narrower: it settles stale persisted task parts and their parent assistant message after the local runner is gone.
    • Stale background subagents persist in UI after session restart/compaction #27373 reported stale background-subagent UI entries after restart or compaction; it is historical/closed but describes a similar stale-state symptom.
  3. NamedIdentity commented on Aug 27, 2026

    @NamedIdentity
    NamedIdentity
    on Aug 27, 2026
    More actions

    #45482 addresses this — abort now returns success only once the branch is closed and released, and pending tool calls are terminalized rather than left running.

  4. Tarquinen commented on Oct 20, 2026

    @Tarquinen
    Tarquinen
    on Oct 20, 2026
    Member
    More actions

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  5. Tarquinen
    closed this as not plannedon Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

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.