Skip to content

Show saved Run notifications in Command details - #2280

Merged
JacobStephens2 merged 5 commits into
mainfrom
issue-2146
Nov 18, 2026
Merged

JacobStephens2 merged 5 commits into
mainfrom
issue-2146

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

 Command details (Console / CLI / JSON / Fleet)
+ owning Command's saved notification subject and full body
+ escaped HTTPS links with original timestamps preserved

Reads stay bounded and confined for Other-account Commands. Security notifications
keep the existing security scope requirement. Missing sidecars show nothing;
dispatched children do not inherit their parent's notification. Logs inventory stays unchanged.

Test seams: the CLI (show text and JSON), Console HTTP (/peek and
/api/v1/peek), Fleet remote details, and rendered Command details in Chromium.

Closes #2146

Evidence

Execution evidence

  • Before: cargo test --test run_notification a_run_without_email_saves_its_notification_beside_its_command_log -- --exact
    failed: left: Null, expected [thirdshift] acme/widgets#7 Add export button: ready for review.
    After: same command passed: 1 passed; 0 failed.
  • Before: node --test --test-name-pattern='saved Run notification' console/tests/inbox.test.cjs
    failed waiting for the missing Run notification region. Adding an exact timestamp assertion also failed:
    actual Reset: 2026-11-18 07:34 EST, expected Reset: 2026-11-18T12:34:56.123Z.
    After: same command passed: 1 passed; 0 failed (84 unrelated tests skipped).
  • The Spec review's exact temporary-home CLI reproducer failed with
    AssertionError: A dispatched Run with no saved notification inherited its parent notice.
    After the ownership fix, the same script passed. The kept regression is
    cargo test --test console notifications::dispatched_children_do_not_inherit_the_parent_notification -- --exact.
  • Final validation: RUST_TEST_THREADS=3 scripts/affected-tests main passed the
    site checks (104.39 s), locked build and full Console browser suite (346.86 s).
    The full cargo test run reached the Trial target, then failed after 6160.45 s
    including compilation on the existing a_scoped_hog_leaves_journal_oom_evidence
    assertion: the scope's journal must record its oom-kill.
    cargo test --test trial a_scoped_hog_leaves_journal_oom_evidence -- --exact --nocapture
    reproduced it; journalctl --user --no-pager -n 5 reports No journal files were found.
    The test and OOM-exec code are unchanged by this branch. All earlier groups
    passed, including 1,972 unit tests, 357 Console HTTP tests, 47 Run notification
    tests and the Architect, Pickup, Security and Spec run groups.
  • The remaining targets passed with
    RUST_TEST_THREADS=3 cargo test --test trial_scope --test update --test user_config.
    python3 -m unittest discover -s scripts -p test_generate_release.py also passed
    all 10 tests. No repository files were changed to bypass the host journal limitation.

Visual evidence

Same synthetic Command and initial details state at both viewports; extra captures below show the notification after scrolling past the facts.

Before — Command details, desktop 1440×900

Before Command details at desktop 1440×900

After — Command details, desktop 1440×900

After Command details at desktop 1440×900

Before — Command details, mobile 390×844

Before Command details at mobile 390×844

After — Command details, mobile 390×844

After Command details at mobile 390×844

Notification below the facts

After — Run notification, desktop 1440×900

After Run notification at desktop 1440×900

After — Run notification, mobile 390×844

After Run notification at mobile 390×844

Review

Fixed point: refs/remotes/origin/main (e137ab54). Standards: 0 findings.
Spec: 1 finding, reproduced and fixed (dispatched-child ownership).
Both reviewers read all 19 changed files. No unread changed files or generated-output exclusions.

Unaddressed findings

  • Standards: None.
  • Spec: None.
  • Security: None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Blast Radius: details

Built with codex codex-cli 0.169.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit e0e5029 into main Nov 18, 2026
25 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2146 branch November 18, 2026 23:55
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 19, 2026
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.

ensure all information received or acquirable in the email notices can be acquired alternatively in the web console

1 participant