Skip to content

Land leftover finished worktrees onto origin/main - #840

Merged
currentbits merged 38 commits into
mainfrom
coder/land-leftover-worktrees-839
Sep 2, 2026
Merged

currentbits merged 38 commits into
mainfrom
coder/land-leftover-worktrees-839

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Summary

Closes #839
Closes #697

Test plan

  • workflow-search, workflow-effort, workflow-permission (159 targeted tests including guardrail hooks, kimi resume, phase retry, catalog/quota)
  • CI electron + renderer jobs
  • Confirm codex-computer-use-note still asserts the fix(codex): tell the model Solenta has no Computer Use toggle #801 suffix
  • After merge: do not delete backup-diverged-f2b70634 / 9e26f68a until this is on origin/main; then reset ~/code/coder-release-build to origin/main (never force-push origin/main)

Made with Cursor

Willem and others added 30 commits September 2, 2026 08:47
… Governance layer: per-agent permission matrix, OS sandbox pr
… Fork: Fork: Fork: Workflow Codex phases drop thread.webSearc
… Fork: Fork: Workflow Codex phases drop thread.webSearch / --
… Fork: Workflow Codex phases drop thread.webSearch / --search
… Fork: Fork: Fork: Composer vim motions toggle
… Fork: Fork: Fork: Fork: Composer vim motions toggle
… Fork: Fork: Fork: Composer vim motions toggle
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Solenta guar
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Solenta guardrail
… Fork: Fork: Fork: Fork: Fork: Fork: Solenta guardrail deny/a
… Fork: Fork: Fork: Fork: Fork: Solenta guardrail deny/ask int
… Fork: Fork: Fork: Fork: Solenta guardrail deny/ask intercept
… Fork: Fork: Solenta guardrail deny/ask interception (classif
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork:
… Fork: Solenta guardrail deny/ask interception (classifyTool)
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Kimi w
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Kimi workflo
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Kimi workflow phas
… Fork: Fork: Fork: Fork: Fork: Fork: Kimi workflow phases can
… Fork: Fork: Fork: Fork: Fork: Kimi workflow phases cannot re
… Fork: Fork: Fork: Fork: Fork: Kimi workflow phases cannot re
… Fork: Fork: Fork: Fork: Kimi workflow phases cannot resume
… Fork: Fork: Fork: Kimi workflow phases cannot resume
… Fork: Fork: Kimi workflow phases cannot resume
Willem and others added 7 commits September 2, 2026 15:10
… Fork: Fork: Fork: Fork: Fork: Fork: Solenta guardrail deny/a
… Fork: Fork: Fork: Fork: Fork: Solenta guardrail deny/ask int
… Fork: Fork: Fork: Fork: Solenta guardrail deny/ask intercept
… Fork: Fork: Fork: Fork: Solenta guardrail deny/ask intercept
…as-77198e

Co-authored-by: Cursor <[email protected]>

# Conflicts:
#	electron/cursor-guardrail.js
#	electron/kimi.js
#	electron/remote-overlay.js
#	electron/ssh.js
Keeps #810 webSearch + leftover Codex effort/permission/resume overlays.
Does not remelt #801. Closes the extract tracked by #839.

Co-authored-by: Cursor <[email protected]>
Finished work from the Codex worktree that was not in the guardrail pile.

Co-authored-by: Cursor <[email protected]>

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

Copy link
Copy Markdown

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

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread electron/runner.js
Comment on lines +5176 to +5179
} else if (crossesBoundary(project) && guardrailsEnabled()) {
try {
const dest = deployKimiGuardrailOverlay({ project, threadId });
if (dest) kimiEnv = { KIMI_CODE_HOME: dest };

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Install the Kimi guardrail in local overlays

When Kimi runs for a normal local project, execution takes the userDataPath && !crossesBoundary(project) branch above and never reaches this remote-only deployment. That branch calls materializeKimiHome, which neither injects the new PreToolUse entry nor copies its hook runtime, so deny/ask-tier tools still execute; the later stream notice only reports them after execution. Install the hook into local Kimi homes as well as remote ones.

Useful? React with 👍 / 👎.

Comment thread electron/workflow.js
projectId: thread.projectId,
overlayKey: agentId,
skipOverlay: skipKimiOverlay,
sessionId: agent.sessionId || null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clear captured sessions before a manual agent retry

When a failed or user-stopped agent emitted its session-init event before exiting, spawnSlot saved that ID on the agent, and the new user-facing retry re-enters runOneAgent with the same field. This passes --resume, -S, or -s to the provider instead of performing the documented fresh re-spawn, potentially continuing a partially executed session rather than rerunning the slot. Clear or suppress the session ID for runFromRetry while retaining it for the bounded automatic retry.

Useful? React with 👍 / 👎.

Comment thread electron/workflow.js
Comment on lines +2058 to +2059
const isFinal = loc.phaseIndex === view.phases.length - 1;
if (isFinal && phaseHasSettled) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require the retried final agent to succeed before finishing

If a final phase originally had one settled agent and one failed agent, the failed slot remains retryable. When that retry also fails, phaseHasSettled is still true because of the old successful sibling, so this branch calls finishSuccess, appends a duplicate assistant answer, and treats the failed retry as a successful completion. Gate this path on result?.ok; a failed retry with an already-settled sibling should simply close the retry session while preserving the previous result.

Useful? React with 👍 / 👎.

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.

Land leftover finished worktrees onto origin/main Solenta guardrail deny/ask interception (classifyTool) is never applied to kimi runs

1 participant