Skip to content

fix(web): show completed Actions held by Pause - #507

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/held-action-result-506
Oct 27, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/held-action-result-506

Conversation

@lastobelus

@lastobelus lastobelus commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Fixes #506

Problem

When a completed, non-running Action had its result delivery pending and heldByEnvironmentPause set, 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:

  • Result: the existing result label plus the retained report.summary.
  • Explanation: it points the user to Resume for the environment, under Settings → Connections.
  • Conditional wording: the held flag stays set after Resume, so the explanation doesn't claim a live Pause. It says the agent hasn't picked up the result and to Resume if the environment is still paused.

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, base f3b049cf0a9fed85e2da14eb807218177dde8c6e.

  • check:changed: passed standard format, lint, knip, typecheck of 2 packages, and 102 tests in 3 files.
  • React compiler: all 3 focused checks passed.
  • Carry compilation: exact-base replay passed and reproduced the PR source tree.
  • Base refresh: the stable patch ID and range comparison are unchanged. Applying the prior binary patch to the new base reproduces the rebased tree exactly. The existing local correctness and copy passes are retained.
  • Regression browser test: failed against the original hook, because there was no completed result to show. It passes now.
  • Runner and fork workers: Node 26.12.1, verified.
  • Review: one independent correctness review (SolHigh) found an invalid null report fixture and stale live-Pause copy. Both are fixed.
  • Quick CI and remote gates: prior-head Quick CI, GitHub CI and Codex results do not validate this base refresh. The branch is published through the normal pre-push hook; current-head GitHub CI and Codex review are required.
  • Push hook: enabled and run normally.

Integrated UI evidence (prior head)

Real-client QA passed on prior head c20cf3c9ccb3275fd27cefcfe8ae28580dd3a37c, base ba9dfa98ef5e16536d689dca454486b01a66ea71, after its exact-head GitHub CI and Codex review passed. These captures do not verify refreshed head 5a2f710e39dca98f8b216964ea72002bea2e89f4 on base f3b049cf0a9fed85e2da14eb807218177dde8c6e; 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.

Before After (prior head c20)
No held-result status Completed result and expanded guidance

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.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T01:56:28.303558Z 5a2f710 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: e0d525e9d5

ℹ️ 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 commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner Author

Real-client acceptance passed on prior head e0d525e9d563085cdd4c4b19dbd2d9b0c649e56b, using the unchanged completed Action held by environment Pause.

  • The result label and retained report summary are visible.
  • Expanded notice details show the conditional guidance to Settings → Connections.
  • No per-Action Resume or Discard control is offered.
  • Delivery remains pending and environment Pause remains active. The check did not release the follow-up or start an agent.

Environment names are anonymized in these browser captures. Application state and behavior were unchanged by that presentation-only redaction.

Before After
Before: no status for the retained held result After: completed result and expanded notice details

The before client used the seven-repair source; its web code was identical to prior base 1d4a19085a99b93ce77431ae879a98293f674db6. The after client used prior reviewed head e0d525e9d563085cdd4c4b19dbd2d9b0c649e56b. This comparison does not verify refreshed head c20cf3c9ccb3275fd27cefcfe8ae28580dd3a37c; the parent acceptance thread will rerun real-client proof after its gates pass. Human visual acceptance remains deferred.

@lastobelus
lastobelus marked this pull request as ready for review October 26, 2026 03:45
@lastobelus
lastobelus force-pushed the lastcode/held-action-result-506 branch from e0d525e to c20cf3c Compare October 26, 2026 03:54
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: c20cf3c9cc

ℹ️ 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 force-pushed the lastcode/held-action-result-506 branch from c20cf3c to 7bffd8e Compare October 27, 2026 00:16
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 7bffd8e6f8

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

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 6c1e51b979

ℹ️ 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 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner Author

Prior-head integrated browser proof at exact head 6c1e51b979fbed755b7e8f8e1afd742b9b0e97bd, based on merged test repair e25d102539c773615b494d8642237c145d228bad.

This capture predates the pure rebase to 5a2f710e39dca98f8b216964ea72002bea2e89f4 on f3b049cf0a9fed85e2da14eb807218177dde8c6e; renewed source attribution and UI acceptance remain with the parent.

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.

Before (original baseline) Prior revision (6c1e51b)
Held result absent before repair Held result and guidance at 6c1e51b

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.
@lastobelus
lastobelus force-pushed the lastcode/held-action-result-506 branch from 6c1e51b to 5a2f710 Compare October 27, 2026 01:54
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5a2f710e39

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

Copy link
Copy Markdown
Owner Author

Primary integration attribution for current head 5a2f710e39dca98f8b216964ea72002bea2e89f4 on base f3b049cf0a9fed85e2da14eb807218177dde8c6e.

The recorded real-client proof at 6c1e51b979fbed755b7e8f8e1afd742b9b0e97bd remains applicable: the complete tree diff from that revision to the current head changes only apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx, containing the separately merged ODS test readiness correction. No production, contract, configuration or dependency file differs. This preserves the earlier screenshot as explicitly prior-head evidence rather than claiming a new capture.

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 3fdb10e3ceed9521e00d4428a6d6784f5ea73ac8; current-head Codex result 6431820803 is clean; unresolved threads are zero.

@lastobelus
lastobelus merged commit 4396d67 into lastcode/main Oct 27, 2026
19 checks passed
@lastobelus
lastobelus deleted the lastcode/held-action-result-506 branch October 27, 2026 03:48
lastobelus added a commit that referenced this pull request Oct 29, 2026
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.

![Before: installed baseline with no pending Action notice](https://github.com/user-attachments/assets/5ab393f3-36a4-42ab-9be0-87671733c620)

![After: named Action wait in current work](https://github.com/user-attachments/assets/f5bd52d6-aa52-4e7a-8215-a9c1104be688)

![After: derived result details under current upstream styling](https://github.com/user-attachments/assets/39a1723f-4e37-438c-a373-14cb96f0696c)

## ⛔ 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
lastobelus added a commit that referenced this pull request Nov 20, 2026
)

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
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.

fix(web): show completed Actions held by environment Pause

1 participant