[产品][Workspace] 增加本地 Session 保存与恢复 #6

Closed
opened 2026-09-15 00:46:55 +08:00 by CoderLambert · 2 comments
CoderLambert commented 2026-09-15 00:46:55 +08:00 (Migrated from github.com)

Execution State

READY

Observed base: main@501d946
Execution base: latest main

Problem

Workspace 当前只保存 draft、Provider 选择和布局的即时偏好,用户无法保存多个研究任务的工作上下文并在之后恢复。

Target

用户可以在本地保存和恢复问题、Provider 选择与布局。Session 不持久化模型回答内容,恢复后必须重新收集当前回答。

Invariants

  • 只使用现有 chrome.storage.local,不增加权限。
  • 不保存 Provider 密码、Cookie 或响应内容。
  • 恢复 Session 时清理旧 response snapshot。
  • 最多保留 20 个 Session,删除和覆盖操作可预测。
  • 不改变 iframe、Grok 顶层标签页或消息协议。

Acceptance Criteria

  • Workspace 提供 Sessions 入口和本地 Session 列表。
  • 可以保存当前问题、Provider 选择和布局。
  • 可以加载 Session 并刷新工作区状态。
  • 可以删除 Session。
  • UI 明确提示回答不会随 Session 保存。

Validation

Focused:

  • 待执行 workspace 静态检查和手动验证

Repository / Regression:

  • 按用户要求暂缓完整测试

Dependencies

Hard blocked by:

  • none

Conflict / shared surfaces

  • workspace UI and local storage state only
## Execution State READY Observed base: main@501d946 Execution base: latest main ## Problem Workspace 当前只保存 draft、Provider 选择和布局的即时偏好,用户无法保存多个研究任务的工作上下文并在之后恢复。 ## Target 用户可以在本地保存和恢复问题、Provider 选择与布局。Session 不持久化模型回答内容,恢复后必须重新收集当前回答。 ## Invariants - 只使用现有 `chrome.storage.local`,不增加权限。 - 不保存 Provider 密码、Cookie 或响应内容。 - 恢复 Session 时清理旧 response snapshot。 - 最多保留 20 个 Session,删除和覆盖操作可预测。 - 不改变 iframe、Grok 顶层标签页或消息协议。 ## Acceptance Criteria - [ ] Workspace 提供 Sessions 入口和本地 Session 列表。 - [ ] 可以保存当前问题、Provider 选择和布局。 - [ ] 可以加载 Session 并刷新工作区状态。 - [ ] 可以删除 Session。 - [ ] UI 明确提示回答不会随 Session 保存。 ## Validation Focused: - 待执行 workspace 静态检查和手动验证 Repository / Regression: - 按用户要求暂缓完整测试 ## Dependencies Hard blocked by: - none ## Conflict / shared surfaces - workspace UI and local storage state only
CoderLambert commented 2026-09-15 00:50:46 +08:00 (Migrated from github.com)

[PROGRESS]

STATUS: IN PROGRESS
ISSUE: #6
LANE: workspace
EXECUTION_BASE: main@501d946
BRANCH: main
HEAD: 130ae98
PR: none
OWNED_SCOPE: local workspace session state and Session drawer UI
SENSITIVE_SURFACES_TOUCHED: none
CHANGED: apps/browser-extension/workspace/index.html; apps/browser-extension/workspace/workspace.js; apps/browser-extension/workspace/workspace.css; docs/ai-agent-roadmap.md
AC_STATUS: implementation complete; full verification pending
VALIDATION: npm run check passed; git diff --check passed
SECURITY_PERMISSION_DELTA: none
KNOWN_RISKS: full regression and browser validation are intentionally deferred
BLOCKERS: none
NEXT: run focused regression tests and manually verify save/load/delete flows, then close Issue #6

[PROGRESS] STATUS: IN PROGRESS ISSUE: #6 LANE: workspace EXECUTION_BASE: main@501d946 BRANCH: main HEAD: 130ae98 PR: none OWNED_SCOPE: local workspace session state and Session drawer UI SENSITIVE_SURFACES_TOUCHED: none CHANGED: apps/browser-extension/workspace/index.html; apps/browser-extension/workspace/workspace.js; apps/browser-extension/workspace/workspace.css; docs/ai-agent-roadmap.md AC_STATUS: implementation complete; full verification pending VALIDATION: npm run check passed; git diff --check passed SECURITY_PERMISSION_DELTA: none KNOWN_RISKS: full regression and browser validation are intentionally deferred BLOCKERS: none NEXT: run focused regression tests and manually verify save/load/delete flows, then close Issue #6
CoderLambert commented 2026-09-15 01:01:26 +08:00 (Migrated from github.com)

[CLOSURE]

Merged commit: 130ae98

Acceptance Criteria:

  • complete
  • Browser Smoke confirms Session save, restore and delete flows on commit 3c3b720.

Validation:

Scope deviation:

  • NONE

Security/permission delta:

  • NONE; Session stores only prompt, provider selection, layout and timestamps in existing local storage.

Follow-ups:

  • Response content is intentionally not restored and must be collected again.
[CLOSURE] Merged commit: 130ae98 Acceptance Criteria: - complete - Browser Smoke confirms Session save, restore and delete flows on commit 3c3b720. Validation: - focused: PASS (`npm run check` on implementation commit) - repository/regression: PASS (CI run https://github.com/CoderLambert/ai-parallel/actions/runs/34872040678) - browser: PASS (Browser Smoke run https://github.com/CoderLambert/ai-parallel/actions/runs/34872040637) - required CI: PASS Scope deviation: - NONE Security/permission delta: - NONE; Session stores only prompt, provider selection, layout and timestamps in existing local storage. Follow-ups: - Response content is intentionally not restored and must be collected again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lambert/ai-parallel#6