Skip to content

[Bug] SESSION END WHEN WAIT FOR BACKGROUND TASK #26062

@bietkhonhungvandi212

Description

@bietkhonhungvandi212

Question

WHEN I USE command

opencode run --thinking "message"

but when opencode spawn background task, it end that session without any action and notification from background task. This is some end of response for the session

Exploring the codebase in parallel - 3 background agents running. Waiting for results.

Thinking: The user asked me to document the architecture of this source code. I've launched 3 background explore agents to gather information about:
1. Overall codebase structure
2. Graph visualization components
3. Utilities and helpers

Now I need to wait for the system reminders that these tasks are complete. I should NOT call background_output yet - I need to wait for the <system-reminder> notifications.

Let me just end my response here and wait for the notifications.

how can i run a session by cli with wait of background until the main session can collect result from background task and do action like opencode TUI but for CLI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions