Skip to content

fix(app): identify the session in archive notifications - #4818

Merged
yomgui merged 2 commits into
devfrom
fix/archive-toast-identity
Sep 10, 2026
Merged

yomgui merged 2 commits into
devfrom
fix/archive-toast-identity

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Problem and RCA

Agent-driven archive actions can affect a nonfocused conversation. The shared archive hook retained the correct session ID for View/Undo but displayed only generic success text, leaving the affected conversation ambiguous.

Product/design decision

Show Session archived: <title> for both manual and programmatic actions, preserving View and Undo. Snapshot the target title before mutation, use New session for blank legacy titles, truncate long titles with full hover text. No confirmation modal for this reversible action.

Options considered: generic toast (ambiguous); named toast (chosen, smallest contextual fix); confirmation dialog (unnecessary interruption); durable activity log/bulk summary (useful future scope, not needed here).

Research: ChatGPT archives without confirmation and supports recovery in Archived Chats (https://help.openai.com/en/articles/8809935). Gmail keeps archived messages discoverable and restorable (https://support.google.com/mail/answer/6576). Material recommends concise operation-related snackbar text and Undo (https://m3.material.io/components/snackbar/guidelines). These documented patterns do not establish competitors exact current toast wording. Agent-driven actions need explicit object identity because direct-click context is absent.

Verification

  • Daytona exact head a33888c: pnpm evals:e2e session-archive-undo --engine v1 --daytona — 1 passed, 0 failed, 0 skipped; 9 steps passed.
  • Covers manual identity, nonfocused programmatic identity, Undo target isolation, View target, long-title layout, empty/whitespace fallback.
  • App pnpm typecheck: exit 0. git diff --check: passed.
  • Broad pnpm evals:typecheck: exit 2, 399 diagnostics both on final branch and clean origin/dev control 2ed12f7; matching content after path/line offsets. No introduced diagnostics.
  • Commit-bound test evidence will be published below. Screenshots are reference-only; assertions determine pass/fail.

Isolated worktree; unrelated ongoing changes excluded.

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 5:10pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-den Ignored Ignored Sep 10, 2026 5:10pm UTC
openwork-diagnostics Ignored Ignored Sep 10, 2026 5:10pm UTC
openwork-landing Ignored Ignored v0 Sep 10, 2026 5:10pm UTC

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (39161 ms), confidentiality-review (60789 ms), spec-provenance-review (74417 ms), desktop-den-sync-review (59702 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (a33888c2bd8400f33d3b4e7b100398e80b65d231). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit a33888c2bd8400f33d3b4e7b100398e80b65d231 · selected evidence

Open review report

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Verification notes for head a33888c2bd8400f33d3b4e7b100398e80b65d231:

  • Published and read back the head-matching Daytona evidence sticky comment. The regression passed: 1 test passed, 0 failed, 0 skipped; 9/9 journey steps passed. It covers manual/programmatic archive identity, View/Undo target isolation, long titles, and empty/whitespace-only title fallback. The two attached screenshots are explicitly unvalidated references, not visual proof.
  • Exact execution: OPENWORK_EVAL_REF=a33888c2bd8400f33d3b4e7b100398e80b65d231 OPENWORK_EVAL_DAYTONA_REF=a33888c2bd8400f33d3b4e7b100398e80b65d231 mise exec [email protected] [email protected] [email protected] -- pnpm evals:e2e session-archive-undo --engine v1 --daytona. The provisioner verified that source SHA. Teardown reported a profile-removal timeout after reporting the sandbox deleted; the test passed.
  • Known broad typecheck failure, not bypassed: mise exec [email protected] [email protected] [email protected] -- pnpm evals:typecheck exits 2 with 399 diagnostics both on this final head and on a clean detached origin/dev control at 2ed12f72d7d1b434b539dde5361db2204d76036a, with frozen root/evals installs and the same toolchain. Diagnostic content matches; differences are checkout paths and shifted line numbers. First matching failure: apps/app/src/app/lib/workspace-endpoint.ts(22,36): TS2835, requiring explicit file extensions under NodeNext. No introduced diagnostics or unrelated fixes. The separate app pnpm typecheck passes. Logs are retained locally as evals/results/typecheck-control.log, typecheck-branch.log, and typecheck-final.log.
  • gh pr checks 4818 --watch --interval 20 completed successfully. Current rollup: 21 success, 5 skipped, 1 neutral, 0 failed, 0 pending. Skipped/neutral checks are not claimed as executed coverage. Three unrelated Vercel projects report success for ignored builds; the app deployment completed.
  • Warden approved this exact head with no blocking findings; there are no inline review threads. Human review is still appropriate. No code changes were needed during monitoring, and no merge was performed.

Publication used the prescribed single-run command. The optional composed report route initially failed because OPENWORK_REVIEW_URL was unset; the documented single-run route succeeded and attached the evidence directly to GitHub.

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Archive-run evidence follow-up: after the prescribed publisher posted and I verified the archive-specific sticky, that same sticky was concurrently replaced with a broader 12-test report for the same head. I have preserved that publication rather than overwrite it. The linked Vercel report requires sign-in, so I cannot independently confirm its selected runs from this environment; its 12-test total is not a claim from my archive run.

For the archive-specific record on a33888c2bd8400f33d3b4e7b100398e80b65d231: Daytona 1 passed / 0 failed / 0 skipped, 9/9 steps passed. The committed regression assertions cover initial isolation, manual archive and Undo, named/long/empty/whitespace-only programmatic archive and Undo, programmatic View, and manual View. The exact command, baseline typecheck diagnosis, and source-record paths are in the verification note.

These uploaded images from the verified run remain available as unvalidated references, not visual assertions:

Archive toast reference

Archived session View reference

No source changes, CI bypasses, or merge were made during this monitoring pass.

This branch was successfully deployed

1 active deployment
Preview – openwork-app — a33888c2 Deployed Sep 10, 2026 by vercel[bot]
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