Skip to content

fix(app): identify working sessions before stop and archive - #4832

Merged
yomgui merged 1 commit into
devfrom
fix/session-archive-confirmation-identity
Sep 10, 2026
Merged

yomgui merged 1 commit into
devfrom
fix/session-archive-confirmation-identity

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Problem and RCA

When session.archive targets a working background conversation, the shared confirmation says only “This session is still working.” The correct target ID/workspace/title were captured, but the modal rendered static copy. This is an identity/context bug, not evidence of wrong-target archiving.

The new rendered-UI regression failed against clean base a21762a93: expected This session is still working: Archive other workspace, received the generic heading. It passes on this PR head.

Product/design decision and consistency with #4818

#4818 names the archived session in its nonblocking View/Undo notification. Apply the same explicit-target rule before confirmation:

  • Name the captured session title; use the same normalized title / New session fallback as the toast.
  • Show selectable workspace and full session ID to disambiguate duplicate/untitled conversations. Preserve explicit workspace names containing separators; abbreviate only a path fallback.
  • Include identity in the screen-reader description and wrap long titles in a bounded, scrollable modal.
  • Explain that restoring does not restart stopped work. Preserve Keep session open and Stop and archive; no navigation, consent, stop/admission, delete, or Undo behavior changes.
Option Decision
Generic modal Reject: assumes direct-click context that programmatic actions do not provide.
Named modal Chosen for active work: stopping execution is not reversed by restoring archive metadata.
Toast + Undo only Keep for ordinary archiving; insufficient consent for interrupting work.
Navigate first Reject as mandatory: disrupts the unrelated current session.
Persistent nonmodal approval Potential follow-up for bulk/background work; larger interaction/command-lifecycle change.

Research, not a claim of human product/design approval or live competitor UI inspection:

  • Apple: Writing Great Alerts specifically recommends naming the object rather than “this file.” Current HIG discourages alerts for common undoable actions.
  • Microsoft dialogs reserves modality for decisions that must block progress.
  • ChatGPT documents archive without confirmation and recoverable archived chats, contrasted with confirmed irreversible deletion.
  • Claude Code agent view documents confirmation naming work that cannot carry over when backgrounding.

Verification — Passed

Exact signed head: 7444dd88180c24fc8b3aa956bab251e374ce66ef.

Command Lane Result
pnpm evals:e2e session-archive-confirmation-identity --daytona --engine v1 Fresh Daytona Exit 0: 1 passed, 0 failed, 0 skipped
pnpm evals:e2e session-archive-button --daytona --engine v1 Fresh Daytona Exit 0: 2 passed, 0 failed, 0 skipped
pnpm evals:e2e session-archive-undo --daytona --engine v1 Fresh Daytona Exit 0: 1 passed, 0 failed, 0 skipped
pnpm typecheck Local Exit 0, no diagnostics
git diff --check Local Exit 0

E2E commands used OPENWORK_EVAL_REF=7444dd88180c24fc8b3aa956bab251e374ce66ef, OPENWORK_EVAL_DAYTONA=1, Infisical environment injection and mise exec [email protected] [email protected] --. No reused sandboxes; all four deleted after runs.

Coverage: working B while A remains visible; title/workspace/ID and computed accessibility description; no mutation before consent; Cancel preserves both; duplicate/blank/long titles and 390px layout; slash-containing workspace labels; pending completion during stop; B-only archive; named toast; Undo without restarting or moving away from A. Existing archive safety/admission and View/Undo regressions also pass.

Commit-bound evidence is published below; screenshots are supplementary, not pass/fail proof. Independent code review found two issues (workspace-label shortening and accessible-description omission), both fixed and re-reviewed with no remaining blockers.

All changes are isolated in a task worktree. No private session transcripts, credentials, or unrelated workspace changes included. V2 archive support, general non-English verification, and activity-center approval redesign are outside this change.

@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 6:45pm UTC
openwork-den Ready Ready Preview Sep 10, 2026 6:45pm UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 6:45pm UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 6:45pm UTC

@yomgui

yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

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

Commit 7444dd88180c24fc8b3aa956bab251e374ce66ef · selected evidence

Open review report

@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 (53029 ms), confidentiality-review (30647 ms), spec-provenance-review (81438 ms), desktop-den-sync-review (48914 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 (7444dd88180c24fc8b3aa956bab251e374ce66ef). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 7444dd88 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 7444dd88 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 7444dd88 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 7444dd88 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