Repository navigation
feat: pin sessions within groups - #128286
clawsweeper wants to merge 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
1622029 to
8c35275
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 12:47 AM ET / 04:47 UTC. ClawSweeper reviewWhat this changesAdds group-local session pinning with distinct timestamps and menu actions while retaining global pins as the existing global-shelf behavior. Merge readinessKeep open for explicit maintainer review: the implementation coherently separates global and group-local pin state, but it expands the durable session and Gateway client contract across web and Apple clients. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherGateway session storage owns pin state and exposes session rows to the Control UI and Apple clients. Each client uses that projection to mutate sessions and order global or group-local pins. flowchart LR
A[Session storage] --> B[Gateway patch owner]
B --> C[Session row projection]
C --> D[Control UI actions]
C --> E[Apple client actions]
D --> F[Global and group ordering]
E --> F
Decision needed
Why: This is a user-visible feature and durable cross-client protocol surface; code review can establish consistency but cannot decide the long-term product and compatibility commitment. Before merge
Agent review detailsSecurityNone. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept one additive, mutually exclusive pin-state contract only if the owning maintainer wants group-local pinning to remain a supported Gateway and client capability, then merge after exact-head CI completes. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR implements a new capability rather than repairing a reported current-main failure; focused source and test evidence covers the intended state transitions. Is this the best way to solve the issue? Unclear: the owner-boundary implementation is coherent, but only maintainers can decide whether this new durable cross-client session contract is the best product direction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1e22f7b85b55. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
8c35275 to
8095bb1
Compare
|
Verification complete for head The ClawSweeper bounded-roster finding is addressed at the Gateway selection owner: finite windows retain group-local pins, page presentation still uses the ordinary/global-pin order, and offset pagination does not duplicate or lose the displaced recent rows. The regression seeds 51 newer sessions plus one older group pin, checks the 50-row first page, confirms Exact local proof:
Exact-head CI: run 32654588249 is green, including the previously failing UI/compact-large shards and the final iOS build. The inspected desktop and mobile screenshots remain embedded in the PR body. Local SwiftLint was unavailable on this non-macOS host; exact-head macOS/iOS CI owns that platform proof and is green. |
8095bb1 to
eeae1ee
Compare
|
Addressed the remaining pin-scope transition finding on head The UI no longer derives pin scope from category membership:
The regression was captured before the repair: the browser test failed because an ordinary menu move included Proof on the amended head:
The PR body now contains the complete before → root menu → scope chooser → reordered result → reopened/checked sequence plus the video and refreshed mobile proof. All prior review moves are applied: explicit global scope is preserved for ordinary organization, focused regression coverage is present, live exact-head GitHub/CI state is refreshed, and the interaction proof is complete. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Product sponsorship confirmed for this additive session contract. The originating maintainer request explicitly asked for group-local pinning, selected the in-place contextual Pin session interaction, requested the implementation and PR, and directed the work through merge readiness. Treat The compatibility boundary remains the one documented and tested in this PR:
Exact-head CI is green on run 32747788974, and the latest ClawSweeper review reports no actionable code findings. |
|
Native landing preparation is complete for exact head
Current The PR body contains the inspected five-step desktop flow, mobile proof, and 5.96-second interaction video. |
eeae1ee to
df12f51
Compare
57952d4 to
955736e
Compare
efc7d22 to
6edfee9
Compare
6edfee9 to
addeb2d
Compare
|
Addressed the remaining ClawSweeper Apple parity finding on exact head
Two complete, non-truncated mandatory autoreviews covered the Apple model/cache/ordering lane and native presentation lane; a final focused autoreview covered the default-card repair. All reported no actionable findings. Exact-head Apple CI is now requested. The prior @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
aa02f2b to
cc16bac
Compare
Closes #128242
Related: #122805
What Problem This Solves
Sessions could previously be pinned only in the global sidebar shelf. Operators who organize sessions into named groups could not keep an important session at the top of its group without removing it from that group.
Why This Change Was Made
This adds group-local pinning while keeping the common global action direct:
Group pins use a separate canonical timestamp so existing
pinned/pinnedAtclients continue to see global pins only. No SQLite schema or protocol-version bump is required.Pin scope remains independent from category membership: ordinary menu, batch, and new-group moves preserve an explicit global pin. The spatial gesture of dragging a row out of the global shelf retains its established visible meaning and unpins the row into the destination group.
The same scope is respected by the row shortcut, drag/drop, group moves, reset, cron rollover, pruning, archive, session events, the Sessions page, and generated Swift protocol models.
User Impact
The common path is shorter and explicit: global pinning is one click, while group pinning is available under More actions. Labels always describe the transition:
Desktop and mobile use the same in-place navigation. Nested Back/Escape returns from Set icon/Assign to More actions, then to the root, with focus restored to the originating item.
Evidence
Complete interaction video
global-pin-more-actions.webm
The inspected 6.84-second recording shows root → More actions → Set icon → Back → Pin in Research → optimistic reorder → confirmed dynamic actions.
Desktop flow
Before: “Pin me” starts below the newer session in Research.
Root menu: global pin is direct; uncommon actions are grouped under More actions.
More actions: the current group action is first and explicit.
Nested action: Set icon drills in without a side flyout; Back returns to More actions.
Result: choosing Pin in Research moves the session to the top of that group while the Gateway patch is still in flight.
Confirmed: reopening More actions shows Unpin from Research; the root action is Move pin globally.
Mobile flow
The compact root and More actions views remain fully visible and unclipped:
Validation
pinScope: "global"and moves into the global shelf.pinScope: "group"and reorders inside the visible category while the patch is deferred.pnpm ui:i18n:baseline— passed (keys=5627,raw-copy entries=78).node scripts/check-changed.mjs -- ui/src— guards, formatting, core/UI typechecks, and lint passed.pnpm build— passed, including packaged modules, plugin SDK export checks, production Control UI build, and performance limits.gpt-5.6-sol, high reasoning).Review metrics
session-menu.tsshrinks from 741 to 666 lines; the new production surface is the shared pin-action resolver, reusable More-actions renderer, and nested in-place view stack.