Repository navigation
fix(web): show completed Actions held by Pause - #507
Conversation
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Delightful! 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". |
e0d525e to
c20cf3c
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
6c5cc2a to
802f8a0
Compare
c20cf3c to
7bffd8e
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
7bffd8e to
6c1e51b
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
|
Prior-head integrated browser proof at exact head This capture predates the pure rebase to The source-built client shows the completed Action label, retained report summary and conditional Pause guidance. Opening Settings → Connections and closing it returns to the same thread with the draft and notice preserved. The Pause dialog confirms wake-ups are held; no Resume action was taken. Stored delivery remains pending and held by Pause, with no running or starting provider.
The environment label was anonymized in the page DOM for the capture; persisted state was unchanged. This is an isolated development preview. Human visual judgment remains deferred; fresh automatic authentication and long-duration sleep recovery are not established by this check. Earlier captures in the description remain correctly labelled as prior-revision evidence. |
Show the completed Action result and retained summary while environment Pause holds its follow-up. Keep held delivery read-only and direct users to the environment Resume control. Carry-Group: resumable-actions Carry-Fix: #506 Carry-Observation: Completed pending held Actions lacked composer presentation; no upstream regression provenance is claimed.
6c1e51b to
5a2f710
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
|
Primary integration attribution for current head The recorded real-client proof at The primary check covered the held-result label, report, conditional Pause guidance, absence of individual Resume/Discard controls, Settings return and draft retention, retained Pause/pending delivery and no active provider. Human visual judgment remains deferred. Current canonical gates are ready: CI run 40435317813 tested |
A finished Project Action can vanish from view while its result is still waiting for the agent, and an environment pause can be easy to miss from an affected thread. Phase 2 of #482 makes both visible on web/desktop and mobile. Part of #482, which stays open. Source review, matching-client native development QA and model revalidation are complete. The full 108-case run and selected failed-guard comparison retain their failures and limits below; the current focused controls passed 20/20 valid samples. Current source checks and Quick CI pass; exact-head GitHub gates remain pending. The prompts fit the normal context budget without an approval label. Later installed mobile/remote checks and restart/Pause persistence remain tracked in #482. ## 🔎 What changed - **Named wait/result notices** show the Action's name, its result and its continuation state, built on Phase 1's existing status helper and the exact Action follow-up. - **Distinct states** separate delivery, queue holds, pending input and current pause. An ended turn is not treated as completion of the delegated task. - **Pause visibility:** the current environment's pause shows beside the affected thread. - **Child rows** keep their existing shells and show only supported, non-delivered Action waits. Local and connected remote children use the same destination as navigation, including the owning environment’s pause state. - **Recovery permissions** disable Resume agent and Discard for read-only destinations, matching the server’s existing `orchestration.operate` requirement. - **Drafts** keep their guarded detail subscriptions. - **#507** held-result notice is consolidated into the new one; result outcomes and summaries are preserved. - **Settlement guidance** is clarified. Ordinary top-level Actions launch and resume with no settlement change. The temporary parent-relay safeguard keeps a mediating parent visible only while it owes a child a result. - **#484** is reused unchanged. - **CI fixtures** use normal scheduling priority in their isolated settings so gate subprocesses can compete with the surrounding test workers. Production defaults and test deadlines are unchanged. ## 🚫 What this does not do - Keep one delegated task alive across an Action wait (Phase 3). - Enable child-owned PR watches (Phase 4). - Authorize a checkpoint, production install, restart or Phase 3. ## ✅ Validation - **Delivery source:** `a57aefcd20ba2467dce60e84e09171e17db16709`, based on `1556523eef088062a129484af6e859c349b25c56`. Reuses #484 and #497 unchanged and integrates the named Action notice with main’s unified current-work status without a duplicate composer notice. The rebase incorporates main’s independent PR-watch quiet deadline; Phase 2 does not add that behavior. - **Source checks:** the current exact head/base passes the complete changed-file gate: 694 tests across 18 files, all 36 typechecks, formatting, lint, GraphQL and unused-code checks. Compiled web tests previously passed 65 cases, with nine focused React Compiler checks; the affected application code is unchanged by this rebase. - **Context budget:** measured provider prompts are five bytes below main and the tool inventory four bytes below main. The ordinary budget test passes; no approval label is needed. - **Quick CI:** passed on exact head `a57aefcd20ba2467dce60e84e09171e17db16709` and base `1556523eef088062a129484af6e859c349b25c56` (run `38f31b1a-72c1-4c28-b272-6b290d54eb2b`). The normal push hook can reuse this matching receipt. GitHub CI remains required. - **Source review:** Astra High’s exact `1556523eef088062a129484af6e859c349b25c56..a57aefc` integration re-check is clean. The current-work conflict preserves main’s compact styling and Phase 2’s derived status without duplicate names. The reviewer accepted native input equivalence and bounded model revalidation; current source/model results remain separately recorded. - **Regression proof:** destination-permission cases failed before the fix; all 39 permission tests then passed. Remote-child badge coverage also reproduced its defect before repair. The static-markup-only mobile table was removed following GitHub review; shared behavior, draft, permission and interaction coverage remain. The latest GitHub finding removed two duplicate shared-function tests from the mobile suite; all 55 focused tests across mobile, client-runtime and shared suites pass. The two new deadline graders reproduced invalid-regex errors before the repair and pass uppercase/negative-response coverage afterward; all 411 eval-grader tests pass. Six current-work browser tests and the focused React Compiler check also pass. - **Matched real guidance comparison:** six cases, three samples per arm, Sol medium and a Luna shell simulator, with identical runner/fixtures and only the actual baseline Action text changed. Candidate 18/18; baseline 15/18; no API errors. The visibility-explanation case improves from 0/3 to 3/3. Own-Action, retraction, existing-protection, PR-watch and stack-link controls pass both versions. This does not reproduce the original top-level incident or establish universal model behavior. - **Eval fixture repair:** two PR cases retain their tasks, prior turns and expectations. Explicit whole-command mocks stabilize repository prerequisites through existing shell history/link accounting. Other commands still use the simulator; these are bounded snapshots, not a Git emulator. - **Full real-model run:** on `dfc5f3468548bb8612c5c1dc30e3d33dfff733f4` / `4fc5620986a11ec9138e2bcac719364609b33337`, Sol medium with a Luna shell simulator completed all 108 Codex-applicable cases: 100 passed the majority rule, with 203/226 valid sample passes and one retained incomplete-response error. All four Action cases passed 8/8 samples. The eight selected failed guards were compared with the actual base’s two Action-text files; four failed both versions, while other scores differed under simulator contradictions or policy/check mismatches. This small, selected comparison establishes neither causation nor absence of regression. No expectations were weakened. The new base adds two deadline cases and changes dynamically discovered watch metadata; the 108 common initial requests are identical, and bounded current-head revalidation covers the new deadline cases and affected Action/watch/child controls. No full current-head 110-case pass is claimed. The eight existing current-head controls passed 16/16 valid samples; one provider-rejected child sample is separately recorded and was not retried. Both new quiet-deadline cases initially had invalid regex graders. After a red/green fixture-based syntax repair with unchanged requirements and actor prompts, their rerun passed 4/4 samples. The rebase changed only web styling; all 110 initial requests and dynamically discovered tool metadata remain unchanged, preserving the eight-case result. The focused total is 20/20 valid samples; this is not a full current-head 110-case run. - **Native development-client QA:** [refreshed matching-client results](#520 (comment)) passed on `f8beb472c81b18297e4dac5bedb6d4f9c392bdec`, fingerprint `6fabe8c41ef164a8d9100d88463f12435ea928eb`. Real checks covered read-only/operate recovery, interrupted-result Resume and Discard without rerunning commands, draft submission/live detail, a named Action/result/continuation, and a durable Pause hold with explicit release. Release cancelled a draining pause; all-quiet Resume and installed restart persistence remain open. Labelled local/remote shell fixtures covered badge reasons, negatives and navigation. Current application/native inputs are unchanged through the test-only update and rebase, with exact comparison proof; Astra found no concrete path requiring a repeated device run. - Native shell fixtures prove rendering/navigation, not autonomous child execution. Source and development-client evidence do not pass installed checkpoint acceptance or all-quiet restart/Pause persistence. ## 🖼️ Visual evidence Synthetic Action metadata with no Action ledger. Before is the installed baseline; the two after views show the refreshed Phase 2 isolated dev client’s single named current-work row and result details. These prove rendering only, not real Action delivery.    ## ⛔ Acceptance still open - **Before source merge:** exact-head GitHub CI/Codex review. Source checks, Quick CI, native development QA, model assessment and local integration review are complete. Normal context-budget limits pass without an approval label. - **Later installed checkpoint:** all four acceptance scenarios in #482, including installed mobile/remote behavior, isolated restart/Pause persistence, and the remaining Phase 1 checks. - Child badge fixtures prove rendering/navigation only. Actual child Action ownership remains Phase 3. This PR does not waive any of these gates. Implemented with GPT-6.1 Sol through the Codex harness in LastCode, reviewed by Astra High, with a Claude writing pass for guidance and app copy. Co-Authored-By: Codex <[email protected]> Carry-Source-Ref: refs/lastcode/carry-sources/pr-520/a57aefcd20ba2467dce60e84e09171e17db16709 Carry-Source-Base: 1556523 Carry-Source-Head: a57aefc
) Implementers following "put new behavior in fork-owned files" still made large inline edits in upstream-owned files, so the owner kept adding a prompt reminder by hand: concentrate code in fork-owned files, minimize code in upstream-owned files, prefer dependency injection to conditional logic. This makes that reminder unnecessary by putting a sharper version in the guidance every implementer already reads. ## What changed - **`docs/lastcode/fork-conventions.md`, "Where LastCode Changes Go":** the first bullet now describes what a good change looks like: - new behavior and its branching go in a fork-owned module; - each upstream-owned file gets only a few small seams (an import plus a one-line call, hook, Layer entry or `case` hand-off); - prefer seams upstream already has (Effect services and Layers, registries, context providers); - add lines rather than edit, wrap or re-indent upstream ones, keeping any unavoidable seam edit minimal; - never copy an upstream module in order to fork it. - **`AGENTS.md`:** the existing pointer line now summarizes that rule, scoped to new behavior outside ports of upstream changes. "Dependency injection vs conditional logic" was reframed because much of this codebase can't use DI. The pure event-sourced orchestrator, contracts unions and i18n have nothing to inject, and there a one-line `case` that hands off to a fork-owned decider is the right seam. What drives conflicts is the shape of the edit, not whether it's a conditional. Brave's `chromium_src` override rules and GitLab EE's one-line `prepend_mod` follow the same principle. This only affects how new work is written. It does not revive the "seams in hot source files" refactor that #720 deferred. ## Evidence: nine-run pilot Three merged LastCode PRs (#23, #170, #507) were re-implemented from reconstructed task prompts at their original base commits, with `gpt-6.2-sol` at `xhigh` in headless `codex exec` sessions, one run per condition: - **A:** today's rule (the #721 section and pointer) inserted into each base; - **B:** A plus the owner's sentence in the prompt; - **C:** this PR's rule in the guidance files, with no hint in the prompt. Footprint uses the #724 upstream-owned line count. Replay applies each run onto two later checkpoints with the shipped feature removed, counting conflicted files/hunks. | Task | A: lines / hunks | B: lines / hunks | C: lines / hunks | Adjusted replay A / B / C | |---|---:|---:|---:|---| | #23 sidebar shortcut | 82 / 14 | 50 / 10 | **32 / 9** | 0/0 · 0/0 · 0/0 | | #170 doc fixtures | 101 / 16 | 13 / 4 | **9 / 5** | 0/0 · 0/0 · 0/0 | | #507 held Action banner | 33 / 5 | 32 / 5 | **26 / 5** | 1/3 · 2/5 · **1/1** | - C had the smallest upstream-owned line count on every task, without a prompt reminder. - No run copied an upstream module. - Limits: - There was one sample per cell. - Replay separated the conditions only on the banner. - Rebase effort was not measured (see #720). - Every condition inflated the banner beyond the shipped 4-line change, so this rule doesn't keep small features small. That's a separate problem. Local review then narrowed the tested wording in two places, without changing the rule for the pilot tasks: - The pointer is scoped to new behavior outside ports of upstream changes. - Necessary seam edits to existing lines (a one-line list entry, a provider wrap) are allowed when kept minimal. ## Validation - `vp run check:changed origin/lastcode/main`: format pass; no code changed. - The final text was re-read against each motivating case: - the three pilot tasks; - inline `case` arms in `Orchestrator.ts`; - fork services wired through `runtimeLayer.ts`; - copy-and-modify of upstream modules; - a React provider wrap; - a one-line `Layer.mergeAll` entry. Local review: 3 rounds with gpt-6.1-terra (xhigh), approved. Implemented by Claude Opus 5.5 in Claude Code via T3 Code; pilot run by gpt-6.2-astra (high) driving gpt-6.2-sol (xhigh) implementers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Carry-Source-Ref: refs/lastcode/carry-sources/pr-769/af4cc271844e4656e1ac868144209f974c40c06c Carry-Source-Base: fba5fa4 Carry-Source-Head: af4cc27



Fixes #506
Problem
When a completed, non-running Action had its result delivery pending and
heldByEnvironmentPauseset, the composer showed no status at all. The user couldn't tell that a finished Action's result was waiting. This PR fixes that presentation gap. I haven't shown that the gap was introduced upstream.Fix
The composer now shows a narrow, read-only banner for that case:
report.summary.Unchanged: how running, interrupted, delivered, disposed and ordinary-pending Actions are shown, and permissions.
Not added: server, RPC or contract changes, provider starts, a raw-output viewer, or per-Action Resume or Discard controls.
Validation
Validated head
5a2f710e39dca98f8b216964ea72002bea2e89f4, basef3b049cf0a9fed85e2da14eb807218177dde8c6e.check:changed: passed standard format, lint, knip, typecheck of 2 packages, and 102 tests in 3 files.nullreport fixture and stale live-Pause copy. Both are fixed.Integrated UI evidence (prior head)
Real-client QA passed on prior head
c20cf3c9ccb3275fd27cefcfe8ae28580dd3a37c, baseba9dfa98ef5e16536d689dca454486b01a66ea71, after its exact-head GitHub CI and Codex review passed. These captures do not verify refreshed head5a2f710e39dca98f8b216964ea72002bea2e89f4on basef3b049cf0a9fed85e2da14eb807218177dde8c6e; the parent acceptance thread will rerun real-client proof after the current gates pass. The same isolated completed Action fixture showed its result label, retained report summary and conditional Settings → Connections guidance in the expanded notice. No per-Action Resume/Discard control was offered. Delivery stayed pending with the Pause-held flag set, and there were no running or starting agents. Human visual acceptance remains deferred.Environment names are anonymized in these browser captures; application state and behavior were unchanged. The before capture predates the repair. The after capture below is from prior head
c20cf3c9ccb3275fd27cefcfe8ae28580dd3a37c. Earlier UI evidence remains recorded separately.Source commit: Carry-Group
resumable-actions. App copy was passed through Claude Opus 5.5, with a factual correction applied after review.Implemented by GPT-6.1 Sol (high) through Codex in T3 Code.