Repository navigation
feat(desktop): resize a remote files panel; fix an empty reply card and a stale compaction divider - #1620
Merged
Conversation
Both views drew a row for a settled reply that held nothing: no prose, no
segments, no elapsed time, no token count, no verdict. The phone filled the
gap with the footer's fallback label ("completed"), so a finished reply
carried a second card underneath it saying only that; the desktop painted
the row and left it empty.
Neither row can come from history — `messageToItems` drops an entry with no
body, no segments and no stats, which is why the rule is restated here rather
than relaxed there. The live lane is what materializes the item: it opens an
accumulator for every run id a frame names, and settling one no longer runs
the projection's blank-reply test.
`drawsNothing` answers a row's question in the phone's terms — nothing
visible, no stats, no outcome, no recovery to offer, not streaming — and
returns null. `footerHasContent` asks the same of the desktop's footer row
through `hasReplyMeta`, the one predicate the stats line itself uses, so the
row is drawn exactly when something will land in it.
Asserted as node sequences, not appearance: the phone's tree is null instead
of one card, and the reply's body ends at its divider with no footer row
after it.
…he tail `mergeLiveInto` keeps live items the refreshed history window does not carry — optimistic bubbles, notices, approval cards — and appends them after the window. The rule that rejects the ones which are merely *old* keyed on `item.runId`: a message from a run the window does not carry is older than the whole window, because the window is a contiguous tail, so paging up serves it again. A manual compaction's divider belongs to no run. It is `m_<checkpoint>` once committed and `compaction:<op>` before that, and it carries no `runId` at all, so the rule never applied to it: the divider stayed in the folded set however far the window moved. Measured on a phone (2026-11-15): a checkpoint three and a half hours old was drawn directly under the newest reply's footer, reading as if the compaction had just happened. The same reasoning answers it — a checkpoint the window does not carry is older than everything in it — so the divider is dropped from the folded set on the same terms, and the durable row reappears in its real place when the reader pages up to it. What may still follow the window is an operation with no durable row yet, which is why a *running* divider is exempt: dropping it would take "compacting context" off screen mid-operation. Asserted as the merged node sequence (checkpoint-free window, then the window's own rows), with the two complements that pin the rule's edges: a checkpoint the window does carry keeps its durable place, and a running divider keeps following the window.
The right column of a remote conversation was a fixed 320px files panel with no divider, so the one panel a remote reader looks at all day could not be widened. It is now the local context panel's column: the same drag divider (and arrow-key nudge), drawn at the shell's shared right-panel width, which the terminal reservation already reads. The fixed-width constant goes with it; the shell reserves `rightPanelWidth` for both panels. In the Vibe reading layer the column keeps its own `PANEL_WIDTH` and no-op resize handlers, exactly as the local panel there.
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.
What this merges
Three changes from the integration branch: a remote conversation's files panel on the desktop becomes the same drag-resized right column as the local context panel; a compaction divider older than the loaded history window no longer sticks to the bottom of the phone timeline; and a settled reply that has nothing to show no longer draws an empty card on either client.
Commits
feat(desktop): drag-resize a remote conversation's files panel— the fixedw-80column and itsREMOTE_FILES_PANEL_WIDTHconstant are gone; the panel gets the shell's drag divider, arrow-key nudge and sharedrightPanelWidth, which the terminal reservation already reads. The Vibe reading layer keeps its own fixed width with no-op resize handlers, exactly as the local panel there.fix(remote-client): keep an out-of-window compaction divider out of the tail—mergeLiveIntonow drops a committed checkpoint the refreshed window does not carry, on the same terms it already applies to items from other runs; a divider whose operation has no durable row yet still follows the window.fix(mobile, desktop): draw no card for a reply that has nothing to show— the phone no longer paints a lone "completed" footer card under a settled reply with no prose, segments or stats, and the desktop no longer paints an empty row (drawsNothing/footerHasContent).Verification
Run at the frozen tip
11e36d4d9in the main checkout (clean tracked tree), Node 22.22.3,ulimit -n 8192. No Rust crate is touched.desktop:tsc --noEmitclean;eslinton the nine changed files clean;vitest runon the four changed suites → 189 passed.mobile:tsc --noEmitclean;eslinton the two changed files clean; fulljest --runInBand→ 171 suites / 3234 tests passed.packages/remote-client:tsc --noEmitclean; fulljest --runInBand→ 32 suites / 709 tests passed.User-visible changes
978d561e9.01ec97f10.41211d7ce.Notes
The remote files panel and the local context panel are now the same column: one drag divider, one width preference, keyed per conversation (a remote conversation's key stays namespaced by host).