Skip to content

Support ACP clients in remote workspaces and harden startup handling#679

Merged
GCWing merged 5 commits into
GCWing:mainfrom
wgqqqqq:codex/remote-acp-workspace-support
May 12, 2026
Merged

Support ACP clients in remote workspaces and harden startup handling#679
GCWing merged 5 commits into
GCWing:mainfrom
wgqqqqq:codex/remote-acp-workspace-support

Conversation

@wgqqqqq
Copy link
Copy Markdown
Collaborator

@wgqqqqq wgqqqqq commented May 12, 2026

What changed

This PR adds ACP support for remote workspaces and tightens the ACP session lifecycle around restore and startup.

  • add remote built-in ACP client support and remote capability probing/storage
  • wire remote ACP session creation through desktop and web workspace flows
  • restore ACP session model/options and permission metadata more reliably in FlowChat
  • disable ACP queue steering paths that do not apply to ACP sessions
  • fail fast when Codex or Claude Code ACP startup gets stuck during initialize or session bootstrap

Why

Before this stack, ACP support was local-only and remote workspaces could not reliably start built-in ACP clients. Session restore and permission state around ACP sessions also had rough edges in FlowChat. Separately, first-time or not-yet-configured Codex / Claude Code installs could hang indefinitely in login or startup paths because the ACP client startup sequence had no hard timeout.

User impact

Users can now launch supported built-in ACP clients in remote workspaces, restore ACP session state more predictably, and get a clear startup failure instead of an indefinite hang when an ACP client is stuck during startup.

Root cause

The ACP stack was missing a remote-workspace path for built-in clients and had no bounded timeout around ACP initialize / session bootstrap. Some UI flows also assumed local ACP session behavior and did not preserve ACP-specific restore state consistently.

Validation

  • pnpm run type-check:web
  • pnpm --dir src/web-ui exec vitest run src/app/components/NavPanel/sections/workspaces/workspaceAcpMenuClients.test.ts src/flow_chat/tool-cards/ReadFileDisplay.test.tsx src/flow_chat/services/flow-chat-manager/PersistenceModule.test.ts
  • cargo test -p bitfun-acp manager -- --nocapture
  • cargo check -p bitfun-desktop

@wgqqqqq wgqqqqq changed the title [codex] Support ACP clients in remote workspaces and harden startup handling Support ACP clients in remote workspaces and harden startup handling May 12, 2026
@wgqqqqq wgqqqqq marked this pull request as ready for review May 12, 2026 09:21
@GCWing GCWing merged commit a939a8e into GCWing:main May 12, 2026
4 checks passed
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.

2 participants