Repository navigation
Reply box: its stores, files, recipients and voice are handed in - #4165
Merged
Merged
Conversation
…nbox's page is the default
…ards hold over a host's store
…viewUrl); without one a reloaded tile shows its icon, as before
…ets it, with an optional most (maxRecipients)
…otice are handed in; skills and the paperclip only when given; Send waits for uploads in the box
…; the box and its field load no voice code without it
…nd capped recipients, no voice or skills, host previews, Send held by an upload
… under 1500 lines); Thread.tsx's ceiling follows it down
backnotprop
marked this pull request as ready for review
November 28, 2026 05:56
backnotprop
added a commit
to bendrucker/plannotator
that referenced
this pull request
Nov 28, 2026
…panel swipes and the HTML viewer's lost highlights ui 0.67.0 and core 0.25.35 went to npm on 2026-11-28 with package files that match the v0.29.6 tag (c21f65e), so this pair carries what merged after v0.29.6, up to v0.29.7. core 0.25.36 is additive: the linked mark "decisions" and InboxDecision.machine (backnotprop#4066), DraftFileUploader.previewUrl (backnotprop#4165), and holdingsOf no longer counting a question Mark read closed (backnotprop#4160). No exports subpath changes; nothing removed. ui 0.68.0 is a minor: Escape while an input method composes only ends the composition, and shortcuts skip such keys; holdsImeEscape is new (backnotprop#3689, backnotprop#4162). HtmlViewer treats a collapsed live Range as lost (backnotprop#4152). Compact panels: OverlayScrollArea scrollMemory, SidebarContainer closing and scrollPositions, ActionMenu compactEdgeSwipe, four new hooks and the panel rules in theme.css (backnotprop#2861). useLaunchAnnouncement waits for ready (backnotprop#4067). ui uses nothing new from core; its exact pin follows so a host gets one core. Publish core first. README and HANDOFF name the new pair, and HANDOFF adds what the published 0.25.35 / 0.67.0 already held beyond their notes (backnotprop#4114, backnotprop#4151). bun.lock is bun install's own output: the two package version lines, and six app workspace version lines (0.29.5 to 0.29.7) the release bumps left behind.
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 it is for
The Spaces app is to show Inbox threads with the Inbox's own reply box, not a copy. Step 1 (#4044) made the box its own view (
components/reply/ReplyBox.tsx). This is step 2: the box and the parts it draws take their stores, files, recipients, voice and skills from the host. A second box on the same page, or another host, then shares no words, drafts, files or recipients with the Inbox's. Everything stays insidepackages/inbox. Nothing moves to@plannotator/uiyet.Nothing a person sees changes, and how that is proved
components/reply/replyBoxParity.test.tsxcompares the thread's foot byte for byte with 12 fixtures captured on main. It passes after every commit, and the fixtures are not touched.Inventory (what the box reached at module level on main)
createReplyDraftPage(); the Inbox's page isinboxReplyDraftPage, and its members keep their old export nameskeptHere/ replyWordsKept.tskeepInBrowser: falsewrites and reads nonecomponents/reply/replyVoice.tsuseSkillReferenceAutocomplete(ui skillCatalog: module transport and cache,fetch('/api/skills')by default)skills={false}turns it off: no list and no catalog readfromUploadDraftFileUploader.previewUrl?(uploadId)(core), absent in the Inboxthread: InboxThreadthreadIdand thechangedNoticeslotrecipientPill(a node built in Thread)recipientsas data,onChange(to: readonly string[]),maxRecipientsEach seam and its Inbox default
replyTextwas already per box (useReplyTextStore). Default: Thread.tsx.createReplyDraftPage({ keepInBrowser })returnsuseReplyDraft(threadId, { store }). Default:inboxReplyDraftPage. Its body keeps the module's indentation, sogit diff -wis small.useComposeFiles(…, { uploader })over aDraftFileUploader. The new optionalpreviewUrl(uploadId)gives the preview of a reloaded image. Default: the HTTP uploader, which has nopreviewUrl, so a reloaded tile still shows its icon.ReplyBoxRecipients, drawn bycomponents/reply/ReplyBoxRecipients.tsxwith the Inbox's own control.maxRecipients: 1gives the list's single-pick mode, with no ticks. When unset, the cap isRECIPIENTS_MAX: what a draft holds, and what the Inbox did before.rcptBox.voice?: { handle, parts }. Without it there is no microphone, no voice line and no voice in the field.ComposerFieldBase.tsx, with no voice import.ComposerField.tsx'sInboxComposerFieldpasses VoiceMic's parts, so every other composer is unchanged.packages/inbox/components/reply/replyVoice.ts.replyVoiceParts.skills?: { onOpen, noneHint, filter, commands }. Without it there is no Skills button, no/list and no catalog read.placeholderis a prop; the Inbox passes its current words.onAttachFilesis optional (no paperclip without it).The Send guards
claim()flushes the waiting save, stops the timer and marks the thread claimed.sent()stops the timer again. A queued save exits on the generation check.save()returns while the thread is claimed.useReplyDraft, which every store goes through. A new test runs them over a host's store.send()refused it. Now the box itself refuses: a press while a file uploads callsonSendWhileUploading, neveronSend. The Inbox passes its ownsend()there, so the same checks run in the same order and the same words show.New tests
components/reply/replyBoxSeams.test.tsx(8 tests):maxRecipientsis unset, single-pick at 1, and a cap at 2;components/reply/replyDraftPages.test.tsx(3 tests): two draft pages share nothing;keepInBrowser: falsewrites no localStorage; the Send guards hold over a host's store.components/reply/replyBoxVoiceSeam.test.ts(3 tests): walks the static imports and checks that ReplyBox reaches no voice module. It failed on 5 import chains before this change.Sizes
replyDraftOptions.ts.Left for step 3
useReplyComposer: the controller that still lives in Thread.tsx (the draft hook, the files hook, send, aim, the keyboard Send). Until then, a host wires those hooks itself, as the test's Host does. A keyboard Send runs through the host'sonFieldKeyDown, so the in-box upload guard covers only the button.Not verified