Skip to content

feat(desktop): resize a remote files panel; fix an empty reply card and a stale compaction divider - #1620

Merged
huichen merged 5 commits into
mainfrom
pr/huichen
Nov 15, 2026
Merged

huichen merged 5 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

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 fixed w-80 column and its REMOTE_FILES_PANEL_WIDTH constant are gone; the panel gets the shell's drag divider, arrow-key nudge and shared rightPanelWidth, 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 — mergeLiveInto now 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 11e36d4d9 in the main checkout (clean tracked tree), Node 22.22.3, ulimit -n 8192. No Rust crate is touched.

  • desktop: tsc --noEmit clean; eslint on the nine changed files clean; vitest run on the four changed suites → 189 passed.
  • mobile: tsc --noEmit clean; eslint on the two changed files clean; full jest --runInBand → 171 suites / 3234 tests passed.
  • packages/remote-client: tsc --noEmit clean; full jest --runInBand → 32 suites / 709 tests passed.

User-visible changes

  • Remote conversation files panel (desktop): before, a fixed 320 px column that could not be widened; after, the same drag-resized column as the local context panel (divider plus arrow-key nudge), and the shell reserves its width for the center's floor. Vibe mode keeps the fixed panel. Revert 978d561e9.
  • Phone remote timeline: a compaction divider older than the loaded window used to be appended below the newest reply; it now appears only in its durable place when the reader pages up to it, while a running compaction still shows. Revert 01ec97f10.
  • Settled replies with no content: the phone used to draw a second card whose only text was "completed", and the desktop drew an empty row; neither draws now. Revert 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).

huichen and others added 5 commits November 15, 2026 22:09
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.
@huichen
huichen enabled auto-merge (squash) November 15, 2026 15:28
@huichen
huichen merged commit 2a28bff into main Nov 15, 2026
14 checks passed
@huichen
huichen deleted the pr/huichen branch November 15, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant