Repository navigation
refactor(pane-layout): retire the unread intent tag; renamedLeafIds is the one layout delta - #30734
Conversation
…s the one layout delta No host ever read intent: 'gesture'. The client stops sending it, the params schema strips it from older clients, and docs/reference records the rule that a snapshot never carries intent.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
When you drag a pane divider or rename a pane on a paired remote host, the app sent the new layout plus a little "this was a gesture" sticker. No host ever looked at the sticker. This removes it, so there's one way to say "the user changed this": the list of panes they renamed.
What Changed
onLayoutChanged,persistLayoutSnapshot, the remote layout pusher andupdateWebRuntimePaneLayoutno longer take or send anintentargument (PaneLayoutEditIntentis deleted from 11 files).session.tabs.updatePaneLayoutno longer declaresintent. Zod's default object mode strips it, so an older client that still sendsintent: 'gesture'keeps working;session-tabs-pane-layout-intent.test.tspins that.docs/reference/remote-snapshot-intent.mdrecords "a snapshot never carries intent; intent travels as an explicit optional delta" (round 4, R4-7 item 1), withrenamedLeafIdsas the example.Why
R4-7 item 2: after #30496 the host reads
renamedLeafIds, and two intent fields must not coexist. Honouring'gesture'for geometry was the alternative, but a tag on the whole snapshot can't say which part the user changed, so a receiver would apply it to fields the user never touched. Deleting it is smaller and leaves one delta.Wire compatibility: an old host gets no
intentfrom a new client (it was.optional()there); a new host strips an old client'sintent. No opcode or published content changes.Linked Issue
Part of the SSH/remote hardening round 4 (R4-7). No issue.
Visual Proof
N/A: no visual or interaction change; the removed field was never read.
Testing
lib/pane-manager,components/terminal-pane,renderer/src/runtime,shared/rpc-contract,shared/workspace-layout/old-clientand the session-tabs RPC tests, single worker.generate-rpc-params-catalog --check(the catalog imports the schema, so it needs no regeneration).Review
Agent skill upstream boundary
Notes
Security, cross-platform, SSH, mobile: no behaviour change. Mobile never sent the tag. Net −82 lines.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)