Skip to content

fix(gateway): reduce ClawX context merge waits; bundle memory-core chokidar#930

Merged
su8su merged 1 commit intomainfrom
fix_clawx_context
Apr 28, 2026
Merged

fix(gateway): reduce ClawX context merge waits; bundle memory-core chokidar#930
su8su merged 1 commit intomainfrom
fix_clawx_context

Conversation

@su8su
Copy link
Copy Markdown
Contributor

@su8su su8su commented Apr 28, 2026

No description provided.

Copy link
Copy Markdown
Contributor

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

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: fcda3d6562

ℹ️ 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 on lines +149 to +150
const isMainDefault =
agent?.default === true || (agent?.id === 'main' && !hasDefaultWorkspace);
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 Treat first agent as default when no explicit default exists

The new startup-wait classification only marks a workspace as retryable when agent.default === true or the id is main, but the rest of the codebase treats the first entry in agents.list as the default when no explicit default is set (see normalizeAgentsConfig). In configs that rely on that positional default behavior (no agents.defaults.workspace, no default: true), this branch misclassifies the real default workspace as non-retryable, so ensureClawXContext can return before Gateway seeding finishes and skip ClawX context merge/cleanup for the active default agent.

Useful? React with 👍 / 👎.

@su8su su8su merged commit 5c97044 into main Apr 28, 2026
5 checks passed
@su8su su8su deleted the fix_clawx_context branch April 28, 2026 11:06
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