Skip to content

fix(lastcode): clarify disabled Action fallback and Claude wrapper waits - #904

Merged
lastobelus merged 5 commits into
lastcode/mainfrom
lastcode/action-notice-claude-wait
Nov 29, 2026
Merged

lastobelus merged 5 commits into
lastcode/mainfrom
lastcode/action-notice-claude-wait

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Problem

Real installed-build trials found two wording gaps:

  • Old-checkout fallback: with Project Action launch disabled, delegated children could still follow older guidance and hand the Action to a parent.
  • Claude background wait: a forced-background command could return before any wrapper output. The instruction to end the turn depended on lc-run reporting a registered wake.

Change

  • Shell fallback: the notice now says no agent can launch Project Actions, even a parent, and to run the Action's shell command in the current checkout.
  • Wrapper exception: where the wrapper registers the wait, Claude's prompt tells the thread's main agent to end the turn without another tool call when Bash backgrounds a simple lc-run with a literal path and arguments, even without output.
  • Other waits: other needed background jobs still use the manual wait, including wrapper commands with shell redirects or expanded arguments.

Scope

This is one narrow wording fix for the two gaps in the trial evidence. No setting or runtime logic changes.

Verification

  • Changed-file checks: vp run check:changed origin/lastcode/main passed, with 27 packages typechecked.
  • Focused tests: 1,118 passed, including the Claude adapter suite.
  • Offline regressions: all three requests built with --dry-run, including the redirect control. The direct-wrapper case requires the next response to end the turn. Context rendered offline.
  • Context size: the regenerated Claude prompt and tool list are the same size. The Codex prompt is 4 bytes smaller.

Saved transcript re-read

All 12 saved transcripts were re-read against the new text. These are re-reads; no post-change behavior was sampled.

Old checkout

Sample Saved behavior Against the new text
Opus 1 Handed off without running the command. Rules out the parent, even without ToolSearch.
Opus 2 Searched, found launch unavailable, then still handed off, citing the thread-owned restriction. Directs the agent to run the command here regardless.
Opus 3 Considered a handoff, then ran lc-run prepare successfully. Keeps that route.
Haiku 1 Ran the bare command after guessing the checkout wasn't thread-owned. Makes that guess unnecessary.
Haiku 2 Searched for the launch tool before running the script. Gives the shell route upfront.
Haiku 3 Retrieved the command from t3.json and ran it. Preserves that choice.

Forced background

All six got the real result.

Sample Saved behavior Against the new text
Opus 1 Called ToolSearch and the manual wait. Says to end the turn before either call, even without wrapper output.
Opus 2 Called ToolSearch and the manual wait, and checked the output file. Says to end the turn before any of these steps, even without wrapper output.
Opus 3 Called ToolSearch and the manual wait, and checked the output file. Says to end the turn before any of these steps, even without wrapper output.
Haiku 1 Ended the turn after Bash returned the background task; reported success after the wake. Makes this route explicit.
Haiku 2 Ended the turn after Bash returned the background task; reported success after the wake. Makes this route explicit.
Haiku 3 Ended the turn after Bash returned the background task; reported success after the wake. Makes this route explicit.

Follow-up: live Claude and Codex samples pending the next installed build.

Local review: 3 rounds with GPT-6.1 Terra (xhigh) at d7b8dba, not clean. All findings were fixed. The scope judge confirmed the narrow diff, caught an adapter assertion, and called for a targeted test pass after restoring the expected phrase and cutting a redundant fixture.

Implemented with GPT-6.2 Sol in T3 Code with the Codex harness.

Older checkout guidance can send a disabled Action to a parent. Claude can also mark a wrapper wait before Bash shows output. Explain the shell fallback and the automatic wake in the prompts, and cover both with offline eval cases.

Implemented with GPT-6.2 Sol in T3 Code with the Codex harness.

Carry-Group: incubator
Carry-Fix: #824
Carry-Evidence: #824 (comment)
The automatic wait excludes pipe and redirect forms. Name that boundary in Claude’s prompt and add a redirected-wrapper control to the offline cases.

Implemented with GPT-6.2 Sol in T3 Code with the Codex harness.

Carry-Group: incubator
Carry-Fix: #824
A wrapper command with shell-expanded arguments also needs an explicit wait. Name literal arguments in the prompt and cover the expansion case offline.

Implemented with GPT-6.2 Sol in T3 Code with the Codex harness.

Carry-Group: incubator
Carry-Fix: #824
Allow one model step after the mocked Bash result so any new tool use prevents a passing end-turn answer.

Implemented with GPT-6.2 Sol in T3 Code with the Codex harness.

Carry-Group: incubator
Carry-Fix: #824
Restore the call instruction verified by the Claude adapter tests. Keep the redirect as the offline control for shell forms excluded by automatic waits.

Implemented with GPT-6.2 Sol in T3 Code with the Codex harness.

Carry-Group: incubator
Carry-Fix: #824
@lastobelus lastobelus changed the title fix(lastcode): clarify Action fallback and Claude wrapper waits fix(lastcode): clarify disabled Action fallback and Claude wrapper waits Nov 29, 2026
@lastobelus
lastobelus marked this pull request as ready for review November 29, 2026 22:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T22:55:37.990658Z d7b8dba Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: d7b8dba399

ℹ️ 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".

@lastobelus
lastobelus merged commit 40fe356 into lastcode/main Nov 29, 2026
36 checks passed
@lastobelus
lastobelus deleted the lastcode/action-notice-claude-wait branch November 29, 2026 23:07
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