Skip to content

fix(lastcode): hide agent Action launch in background-wait sessions - #845

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/background-wait-hide-agent-actions
Nov 24, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/background-wait-hide-agent-actions

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

With both routes offered, the Luna eval picked a saved Project Action over the shell wrapper in 10 of 120 runs, even though all 120 tasks completed. Eval results for #824

Change

With lastcodeBackgroundWaitEnabled on (default off), a newly started provider session hides list_project_actions, run_project_action_and_resume and discard_interrupted_action from MCP discovery and rejects direct calls to them.

Agents can still inspect runs and resume interrupted follow-ups using their retained results. Users can still launch saved Actions and discard interrupted follow-ups in the UI. Existing Actions still deliver results.

T3's instructions drop the Action launch and parent-mediation paragraphs and the relaunch hint for stale results. The stale-result warning stays. AGENTS.md still names Actions until the default-on change.

Known limit

Existing thread credential rotation can leave the older of two live provider sessions for the same thread unable to use MCP tools until it reopens after the flag changes. The broader credential-lifecycle work was removed after convergence review.

Part of #824.

Verification

  • vp run check:changed origin/lastcode/main passed at a3c2511807c07427bffc0081d209e08e9f50c2f8 with 1,827 tests and 43 package typechecks. Quick CI also passed on that head.
  • Targeted simulated Luna evals passed 9/9 with the flag on and 9/9 with it off. One baseline case reproduced the failure with launch tools visible.
  • Flag-off runtime and orchestration text matches main byte for byte.
  • Live provider and UI verification is pending.

Local review: 4 rounds with GPT-6.1 Terra (xhigh) at a3c2511807c, approved after narrowing.

Implemented with GPT-6.2 Sol in Codex.

Agents sometimes chose a saved Project Action even when the project pointed them to the background-wait wrapper. With the flag on, hide Action launch tools and retire their instructions for that provider session. Keep existing result delivery and recovery available.

Implemented with GPT-6.2 Sol in Codex.

Carry-Group: incubator
Carry-Fix: #824
Carry-Observation: LastCode command wrapper
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T03:17:49.913362Z a3c2511 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. Can't wait for the next one!

Reviewed commit: a3c2511807

ℹ️ 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 af851c0 into lastcode/main Nov 24, 2026
38 checks passed
@lastobelus
lastobelus deleted the lastcode/background-wait-hide-agent-actions branch November 24, 2026 05:19
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