fix(workspace): keep local files out of localStorage - #2866
Conversation
There was a problem hiding this comment.
Reviewed 4b88216: 1 high, 1 medium, 0 critical findings. Request changes because the restored local SQL/TXT/JSON path can fail for files represented by persisted directory-handle metadata; legacy payload cleanup also does not rewrite localStorage during hydration. Coverage was limited to the five-file current GitHub API diff and related PR metadata; no tests or runtime checks were run.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
Generated by AI Pull Request Reviewer for #2866 · 22.1 AIC · ⌖ 0.848 AIC · ⊞ 17.4K
There was a problem hiding this comment.
Reviewed short SHA 970ee9f. Findings: 0 critical, 0 high, 0 medium. The prior blocking findings are addressed by handle-aware local-file reload and versioned hydration migration that sanitizes legacy persisted tabs. Merge recommendation: ready to merge. Coverage limit: review was limited to the current GitHub API diff, PR metadata, existing reviews, and line comments; no tests or runtime checks were run. ``
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
Generated by AI Pull Request Reviewer for #2866 · 4.11 AIC · ⌖ 2.76 AIC · ⊞ 27.8K
Superseded by updated review from same workflow.
970ee9f to
88f4e8a
Compare
Related issue
N/A - reported through a direct customer reproduction; no existing Issue was found.
Summary
Affected surfaces
Verification
yarn install --frozen-lockfile- passed; generated the isolated worktree Umi setupyarn test:local-file-encoding- passedyarn test:saved-console-lifecycle- passedyarn test:editor-close- passedyarn run lint- passed before and after rebasing onto current mainyarn run build:web:community --app_version=0.0.0- passed after each implementation round, including all prebuild contract tests and production-bundle verificationCHAT2DB_FRONTEND_SRC_ROOT=<pr-community-src> yarn run build:web:desktop --app_version=0.0.0in a clean Studio main worktree - passed at final PR head88f4e8af; Community source lock, API contract, and Pro composition bundle verified88f4e8af; the final 200 MiB local-file runtime reproduction is pending user execution.Risk and compatibility
Reviewer map
chat2db-community-client/src/store/workspace/utils/workspaceTabPersistence.ts, then review versioned hydration instore.tsand the tested local-file reload request inlocalFileWorkspaceTab.ts.Contributor declaration
AI assistance: OpenAI Codex investigated the failure path, implemented the scoped frontend changes and regression tests, addressed automated review findings, reviewed the diff, and ran the reported verification commands.