Skip to content

fix: keep @agent first send on target workspace Prevent reactive ACP loads from cancelling new-agent prompts by binding the target workspace on session switch and creating the target main session when missing.#1184

Merged
su8su merged 2 commits into
mainfrom
fix_multi_agent
Jul 20, 2026

Conversation

@su8su

@su8su su8su commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…loads from cancelling new-agent prompts by binding the target workspace on session switch and creating the target main session when missing.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6179cce596

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/pages/Chat/index.tsx
}));
if (targetAgent) {
selectAcpSession(sessionKey);
selectAcpSession(sessionKey, promptCwd);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve create-if-missing state for target retries

When the first targeted send is for an agent whose session is not in sessions, this call switches to a newly inserted placeholder before the async load runs. If that loadAcpSession(...createIfMissing) fails transiently before creating the ACP session, the next retry renders with the placeholder present but not marked createdLocally, so createIfMissing becomes false and the retry tries to load a non-existent session instead of creating it. Keep the placeholder pending/local until the create load succeeds, or otherwise remember that this target still needs creation.

Useful? React with 👍 / 👎.

Comment thread shared/i18n/locales/en/chat.json Outdated
"gatewayStatus": "gateway {{state}} | port: {{port}} | pid: {{pid}}",
"retryFailedAttachments": "Retry failed attachments",
"workspacePrefix": "{{workspace}}",
"workspacePrefix": "Workspace: {{workspace}}",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the Russian workspace prefix too

The repo instructions require full locale coverage for user-facing text under en/zh/ja/ru. This changes the composer workspace label in three locales, but shared/i18n/locales/ru/chat.json still has the old "{{workspace}}" value, so Russian users will not see the added workspace prefix and the locale set is inconsistent.

Useful? React with 👍 / 👎.

@su8su
su8su merged commit 951ca13 into main Jul 20, 2026
7 checks passed
@su8su
su8su deleted the fix_multi_agent branch July 20, 2026 09:54
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