fix(ui): remember folded inbox subtasks - #11069
Open
cryppadotta wants to merge 1 commit into
Open
Conversation
Contributor
Greptile SummaryThis PR persists inbox parent-fold state in company-scoped localStorage and restores it after remounts and company changes.
Confidence Score: 5/5The PR appears safe to merge because no actionable failure remains in the changed persistence flow. The new state is keyed by company, restored when the selected company changes, updated through every current parent-collapse action, and protected against malformed or unavailable browser storage.
|
| Filename | Overview |
|---|---|
| ui/src/lib/inbox.ts | Adds guarded, company-scoped serialization helpers for collapsed parent IDs using the established inbox-storage pattern. |
| ui/src/pages/Inbox.tsx | Initializes, reloads, and saves collapsed-parent state across remounts, company changes, pointer actions, and keyboard actions. |
| ui/src/lib/inbox.test.ts | Covers company isolation, empty values, missing values, and invalid stored payloads for the new helpers. |
| ui/src/pages/Inbox.test.tsx | Verifies that both collapsed and expanded parent states survive inbox remounts. |
Reviews (1): Last reviewed commit: "fix(ui): persist inbox subtask folds" | Re-trigger Greptile
Co-Authored-By: Paperclip <noreply@paperclip.ing>
cryppadotta
force-pushed
the
fix/remember-folded-inbox-subtasks
branch
from
August 8, 2026 19:14
b52f443 to
18cd80c
Compare
Contributor
Author
|
@greptile review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Linked Issues or Issue Description
What happened?
The inbox reset every folded parent task after a page refresh. This made all nested sub-tasks visible again.
Expected behavior
The inbox must keep each folded or unfolded parent state after a page refresh. The state must remain separate for each company.
Steps to reproduce
Paperclip version or commit
Current
masterbefore this pull request.Deployment mode
Local dev and built-from-source deployments.
What Changed
Verification
pnpm exec vitest run ui/src/lib/inbox.test.ts ui/src/pages/Inbox.test.tsx— 77 tests passed.pnpm check:token-gates— all gates passed.pnpm --filter @paperclipai/ui typecheck— passed.pnpm --filter @paperclipai/ui build— passed.pnpm -r typecheck— passed.pnpm build— passed.pnpm test:run— 3,521 tests passed and four skipped. One unrelated server test on the current base fails because it readsheartbeat.scheduling_suppressedinstead ofissue_commented; the same test fails alone and this pull request changes only inbox UI files.Risks
Model Used
gpt-5.6-sol, with reasoning, tool use, and code execution. The runtime does not expose its context-window size.Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template#NNN/github.com/paperclipai/paperclipURLs)docs/...,fix/...) and contains no internal Paperclip ticket id or instance-derived details