Skip to content

fix(chat): fall back when the workspace CLI cannot start - #1318

Open
crispinhu27 wants to merge 1 commit into
mainfrom
feature/conversation-platform-fallback
Open

crispinhu27 wants to merge 1 commit into
mainfrom
feature/conversation-platform-fallback

Conversation

@crispinhu27

Copy link
Copy Markdown
Collaborator

What changed

A Docker startup error or a CLI installation timeout could leave a conversation in workspace mode and fail its current turn. When startup fails before the workspace CLI can run, LoopForge now restores platform mode and continues the same turn on the conversation's execution machine.

The fallback preserves the native session and the workspace binding. The rest of the turn uses platform tools, and later turns can reopen the workspace. The conversation stream shows the fallback, and diagnostics retain the startup error.

Scope

  • Platform core / API / runner

Compatibility

Uses the existing conversation state, mode events, and runner protocol for local and remote execution.

Validation

  • Passed the Go regressions for workspace handoff and startup recovery, including a simulated CLI installation timeout in a saved conversation. The fallback regression also passed ten consecutive runs.
  • Confirmed that real Docker bind-mount and missing-network errors on a local daemon both allow the current turn to finish in platform mode.
  • Passed the chatbot build and its 494 tests, go vet ./..., the public content check, and Gitleaks 8.30.1 on the committed source.
  • A wider local Go run hit the engine package timeout. The browser-stream timeout, sandbox host check, Git bare-repository restriction, and optional Docker script permission failure also reproduced on main. The PR's CI workflow runs public browser acceptance.

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.

1 participant