Repository navigation
Keep Claude runs open until a mid-text steer gets its own reply - #1614
Conversation
… Automations: natural-language authoring (describe it in chat
… P2: Replay-fixture provider harness: recorded CLI output thr
Solenta-Message-Id: 0b78343d-528b-4fc6-a41d-e847e87971b7
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02e45fca29
ℹ️ 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".
| : {}), | ||
| trigger: hasTrigger ? { type: "github", ...triggerRaw } : null, | ||
| tier: args && args.tier, | ||
| ...(args && args.memory != null ? { memory: args.memory } : {}), |
There was a problem hiding this comment.
Expose memory in the automation_create schema
When an agent tries to create an automation with initial memory, this forwarding branch is unreachable through the MCP tool: the automation_create input schema around line 1711 declares model, preset, enabled, tier, and trigger, but not memory, so MCP/Zod validation strips or rejects that argument before this handler runs. Add an optional string memory field to the registered schema so the newly supported value can actually reach addAutomation.
Useful? React with 👍 / 👎.
…-a-mid-text-steer-is-drop-c83ba9 # Conflicts: # electron/test/fixtures/replay/claude-2.1.283-steer.ndjson # electron/test/replay-scenarios.test.js
…-0c31dd Replay harness files take main's #1614 version. htmlFence takes main's warm-import fix (#1615); threadView uses the same warm import instead of polling. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-0c31dd Replay harness files take main's #1614 version. htmlFence takes main's warm-import fix (#1615); threadView uses the same warm import instead of polling. Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a steer lands while Claude is mid-text, Claude CLI 2.1.283 doesn't fold it into the current turn. It answers in a second turn after the first
result. The runner ended the run on that firstresult, so the reply to the steer was dropped (#1608).What changed
electron/providers.js: the Claude CLI is now launched with--replay-user-messages. The CLI then echoes each stdin user line (type: "user",isReplay: true) when it takes the line up. That happens either at a tool boundary before the result, or as the start of its own turn after it.electron/runner.js:steerRunsaves the steer text it sent on the live entry inunansweredSteers. That list only exists for Claude runs.electron/runner-provider-claude.js:unansweredSteerslist.includes()because steers sent together come back as one echo joined with"\n".resultarrives while a steer is still unanswered, the run stays open. It still records that turn's session id and usage, saves the store, pushes detail, and returns without finalising. The nextresultcloses the run as usual.onExitpath fails the run. The thread can't get stuck on "working".Tests
claude.test.js:steer-waitscenario now emits the replay echo.steer-no-echoscenario covers a CLI that never takes the steer up. The new test checks that the run endsfailedand is no longer running.--replay-user-messages.claude-2.1.283-steer.ndjson: adds the recordedisReplayecho of the steer.replay-scenarios.test.js: thetodo: "#1608"test is now a real test. It asserts:"steered", both with the samerunId;0.0326415, becausetotal_cost_usdis the process's running total.🤖 Generated with Claude Code