Skip to content

fix: follow native OpenCode task lifecycle - #4

Open
FlorentinDUBOIS wants to merge 1 commit into
psh4607:mainfrom
FlorentinDUBOIS:fix/opencode-1.18-lifecycle
Open

fix: follow native OpenCode task lifecycle#4
FlorentinDUBOIS wants to merge 1 commit into
psh4607:mainfrom
FlorentinDUBOIS:fix/opencode-1.18-lifecycle

Conversation

@FlorentinDUBOIS

Copy link
Copy Markdown

Summary

  • derive activity only from real task and delegate tool parts so persistent prompt metadata cannot become permanent running rows
  • follow native sessionId / jobId child sessions after parent completion and deduplicate resumed calls immediately through task_id
  • preserve the update notifier, / header, and observed OMO/legacy background lifecycles without resurrecting historical reminders
  • add deterministic lifecycle tests to CI and regenerate the tracked dist/ output

Verification

  • bun install --frozen-lockfile
  • bun run test (18 passed)
  • bun run typecheck
  • bun run clean && bun run build
  • git diff --check
  • isolated OpenCode 1.18.13 TUI startup loaded subagent-sidebar once with no plugin error

Fixes #3

Persistent prompt parts and parent completion can create false agent
activity under OpenCode 1.18. Derive rows only from real task and
delegate parts, follow child sessions, and deduplicate resumes.

Keep legacy background compatibility limited to observed tool rows and
add deterministic lifecycle tests to CI.

Fixes psh4607#3

Signed-off-by: Florentin Dubois <florentin.dubois@clever.cloud>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix stale prompt-part rows and OpenCode 1.18 background lifecycle

1 participant