Skip to content

Running session loses visible thinking state when switching between two active sessions #311

Description

@doctCui

Description

When two sessions are executing at the same time, switching between them causes the in-progress thinking/execution state to become invisible for the session that is no longer selected.

The backend session appears to continue running, but the UI does not keep or restore the live thinking/status view when switching back.

Steps to reproduce

  1. Start OpenWorker with a local Ollama model.
  2. Open two sessions.
  3. Start a task in session A and, while it is still running, start a task in session B.
  4. Switch between session A and session B while both tasks are still executing.
  5. Switch back to the other session.

Actual behavior

The session may still be executing, but its thinking/progress state is no longer visible in the UI after switching sessions. The live state is not reliably restored when returning to the session.

Expected behavior

Each session should retain and display its current running state, streamed thinking/reasoning, progress events, and Stop control independently. Switching sessions should not hide or lose the live execution state; returning to a session should show its current state immediately.

Environment

  • macOS 15.6.1
  • OpenWorker local development build
  • Ollama local provider
  • Model: ollama:qwen3:4b
  • Reproduced with two concurrently running sessions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions