Repository navigation
fix: preserve sidebar channel order in JSON exports - #282
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 1, 2026, 1:18 AM ET / 05:18 UTC. ClawSweeper reviewWhat this changesThe PR includes saved sidebar channel orders and explicit clears in SQLite and PostgreSQL JSON exports, adds shared regression coverage, and updates documentation and the changelog. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain This remains necessary on main, but the patch introduces an export failure for unmigrated v0.6.0 databases. No merged replacement resolves this work. Priority: P2 Review scores
Verification
How this fits togetherClickClack stores personal sidebar order in its account-preference tables. The operator’s export command reads database tables into a JSON snapshot for audits and migrations. flowchart TD
A[Saved account preferences] --> B[SQLite or PostgreSQL]
C[Operator export command] --> D[Export table selection]
B --> D
D --> E[Read snapshot rows]
E --> F[JSON output]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Include saved preferences when their table exists while preserving exports of older databases without forcing schema changes. Do we have a high-confidence way to reproduce the issue? Yes, source establishes both the current-main omission and the introduced upgrade failure: export a v0.6.0 database with the candidate before running migrations. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? No, the table-list repair is appropriately narrow but must tolerate an older schema; checking table availability preserves the existing export workflow. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found, but no applicable review policy affected this item. Codex review notes: model internal, reasoning medium; reviewed against c664dd71cfbb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Include saved personal channel order in JSON exports from SQLite and PostgreSQL. The roaming feature stores these preferences in
user_sidebar_channel_order, but both export table lists omitted it, so an export lost the saved orders and explicit clears.Add the table to both exporters and extend their shared sidebar-preference contract to check exported data. The regression failed on both databases before the fix and passes on both afterward. Full remote
pnpm checkandpnpm coveragepass (86.7%); independent P0–P2 review is clean. Documentation and the 0.7.0 changelog are updated.Follow-up to #260.