Repository navigation
fix(lastcode): hide agent Action launch in background-wait sessions - #845
Merged
lastobelus merged 1 commit intoNov 24, 2026
Merged
Conversation
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
Codex Review Summary: ✅ CompletedThis 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. |
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
5 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
lastcodeBackgroundWaitEnabledon (default off), a newly started provider session hideslist_project_actions,run_project_action_and_resumeanddiscard_interrupted_actionfrom 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.mdstill 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/mainpassed ata3c2511807c07427bffc0081d209e08e9f50c2f8with 1,827 tests and 43 package typechecks. Quick CI also passed on that head.Local review: 4 rounds with GPT-6.1 Terra (xhigh) at
a3c2511807c, approved after narrowing.Implemented with GPT-6.2 Sol in Codex.