feat(windows): pinned cards + self-compact settings#117
Open
Aryansharma28 wants to merge 1 commit into
Open
Conversation
Two macOS-side features from late May/early June that were missed in the Phase 7 parity audit. Both ride into the Part 1 follow-up branch. Pinned cards (mirrors macOS Sources/.../BoardStore + BoardView): - Adds pinned_at / pinned_sort_order to Link, byte-compatible with the macOS JSON shape. Archive/move-to-all-sessions clear the pin. - Adds set_card_pinned + reorder_pinned_cards Tauri commands. - Adds a Pinned strip above the columns in BoardView with horizontal drag-reorder. Pinned cards are hidden from their real lane so they don't double-render. - Right-click "Pin to top" / "Unpin from top" in the card context menu; pinned cards show a small gold pin glyph next to the title. - merge_ops inherits the pin from source when target wasn't pinned. Self-compact (data shapes + drop-guard, mirrors macOS SelfCompactSettings): - New SelfCompactSettings struct with byte-compatible defaults (500k/ 600k/700k queueing, 750k /compact). - QueuedPrompt grows a selfCompactThresholdTokens field so the guard can distinguish auto-enqueued nudges from manual prompts. - New context_usage.rs reads <data_dir>/context/<sessionId>.json (the statusline-emitted file, same path layout as macOS). - New should_drop_self_compact_prompt command runs the macOS shouldDropStaleSelfCompactPrompt logic. Wired into the CardDetailView auto-send path so a compact nudge that the user already addressed gets dropped instead of sent. - SettingsView gets a Self-compact toggle plus a read-only summary of the configured thresholds. Out of scope here (each deserves its own PR): - Polling/generation loop that *enqueues* compact prompts when usage crosses a threshold. Needs the statusline script to emit the context-usage JSON in the first place — no plumbing on Windows yet. - Channel reorder (the macOS commit bundled "channels + pinned" — only pinned ported here).
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.
Summary
Two macOS-side features that landed in late May / early June and were
missed by the Phase 7 parity audit (which focused on the chat surface,
not board/orchestrator additions). Targets PR #115's branch so it
lands as part of the Part 1 follow-up bundle, not directly on `main`.
Pinned cards
Self-compact (data shapes + stale-nudge drop guard)
Verify
Out of scope (deliberate, follow-up issues recommended)
Test plan
🤖 Generated with Claude Code