Skip to content

fix(chat): preserve conversation history across engine switches - #4869

Merged
benjaminshafii merged 1 commit into
devfrom
fix/session-engine-history-continuity
Sep 10, 2026
Merged

benjaminshafii merged 1 commit into
devfrom
fix/session-engine-history-continuity

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Scope workspace session-list requests to their owning endpoint and engine; reject obsolete results and prioritize the selected workspace after routing discovery.
  • Retain conversation tabs across engine-specific inventories, while respecting explicit archive metadata and workspace identity.
  • Extend the upgrade journey with completed v1/v2 chats, a workspace created after the switch, authoritative post-grace sidebar refresh, sidecar restart, and transcript readback after reload. Supports deterministic and opt-in live OpenAI execution.

Verification

  • Source and merge commits: GitHub-verified signatures.
  • Focused app regression tests: 70 passed, 0 failed.
  • App typecheck, CI core/build, and Warden: passed.
  • Additional real-LLM continuity run: failed on the first v1 send, before engine switching. Native message list stayed empty for 150 seconds; root cause unresolved. Failure details and reproduction.
  • The earlier local attempt failed before app startup due to Docker filesystem I/O errors; it is not passing evidence.
  • Full local eval typecheck remains unresolved outside the edited sections; no clean-control equivalence claimed.

Scope

This preserves engine-owned navigation state; it does not migrate conversations or automatically open v1 history through v2. End-to-end live continuity remains unverified despite the completed merge.

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Commit 0c913e8d3c5f5c2c6248536efa6610ebb02568d7 · 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 (175401 ms), confidentiality-review (207372 ms), spec-provenance-review (211115 ms), desktop-den-sync-review (288964 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 (0c913e8d3c5f5c2c6248536efa6610ebb02568d7). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii
benjaminshafii merged commit 51a769f into dev Sep 10, 2026
27 checks passed
@benjaminshafii

Copy link
Copy Markdown
Member Author

Additional Live Continuity Verification: Failed

Source head: 0c913e8d3c5f5c2c6248536efa6610ebb02568d7.

Test: workspace-engine-upgrade.e2e.test.ts, real-LLM variant. Placement: daytona (--daytona). Result: 0 passed, 1 failed, 0 skipped, exit 1.

The first v1 session was allocated and navigation reached its ID, but its native message list remained empty. The run failed with Timed out waiting for v1 completed native assistant response after 150000ms; last value: []. Engine switching, the second workspace, and transcript restoration were not reached. This is not evidence that conversation continuity is fixed end-to-end, nor sufficient evidence to assign a root cause to the first-send failure.

Run record: evals/results/test-runs/2026-09-10T22-58-47-744Z-real-llm-completed-workspace-history-survives-v1-v2-switches-and-sidecar-restart/test-run.json. No screenshots or first-send request diagnostics were retained; richer diagnostic capture is needed for follow-up. Both isolated Daytona sandboxes were cleaned up.

Reproduction:

OPENWORK_EVAL_REF=0c913e8d3c5f5c2c6248536efa6610ebb02568d7 OPENWORK_EVAL_LIVE_OPENAI=1 infisical run --silent -- pnpm evals:e2e workspace-engine-upgrade --daytona --engine v1

The earlier Passed evidence comment covers a separate CI selection. App regression tests (70/70), CI core/build, and Warden passed separately. The PR was merged while this additional failure was being investigated. Automatic report publication could not run because OPENWORK_REVIEW_URL is not configured here; this comment records the failure without claiming a published artifact report.

This branch was successfully deployed

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