Repository navigation
Land leftover finished worktrees onto origin/main - #840
Conversation
… Governance layer: per-agent permission matrix, OS sandbox pr
…dit and unqueue follow-ups
… 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
…rk: 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
…Fork: Kimi workflow phases cannot resume
…workflow phases cannot resume
… 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]>
There was a problem hiding this comment.
💡 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".
| } else if (crossesBoundary(project) && guardrailsEnabled()) { | ||
| try { | ||
| const dest = deployKimiGuardrailOverlay({ project, threadId }); | ||
| if (dest) kimiEnv = { KIMI_CODE_HOME: dest }; |
There was a problem hiding this comment.
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 👍 / 👎.
| projectId: thread.projectId, | ||
| overlayKey: agentId, | ||
| skipOverlay: skipKimiOverlay, | ||
| sessionId: agent.sessionId || null, |
There was a problem hiding this comment.
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 👍 / 👎.
| const isFinal = loc.phaseIndex === view.phases.length - 1; | ||
| if (isFinal && phaseHasSettled) { |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
origin/mainafter Land leftover pile from backup-diverged-8c64b9b2 #810. Superset tip is77198ede(f2b70634): kimi/grok/cursor/codex/opencodeclassifyToolhooks, remote overlay reclaim, composer vim, workflow resume/retry.6c8ad354(17477fb4) and grok remote reclaim tests from5be3d7c5.-c web_search=liveand leftover effort/permission/resume. Does not remelt fix(codex): tell the model Solenta has no Computer Use toggle #801. Skips stale~/code/coder(coder/codex-resume-no-search), which would delete Land leftover pile from backup-diverged-8c64b9b2 #810 test files.Closes #839
Closes #697
Test plan
workflow-search,workflow-effort,workflow-permission(159 targeted tests including guardrail hooks, kimi resume, phase retry, catalog/quota)codex-computer-use-notestill asserts the fix(codex): tell the model Solenta has no Computer Use toggle #801 suffixbackup-diverged-f2b70634/9e26f68auntil this is onorigin/main; then reset~/code/coder-release-buildtoorigin/main(never force-pushorigin/main)Made with Cursor