feat(ios): compact idle composer — one-line per shell when not typing#6
Merged
Conversation
When the composer text field is unfocused, empty, and has nothing pending, each shell collapses to a single-line field + model pill + send (like the Claude/Codex mobile composers), expanding to the full controls + roster/ queued rows + telemetry rail the moment you focus it (or there's a draft / queued prompt / attachment). - Composer: a @focusstate drives `isExpanded`; idle hides the approval + guest controls (the model pill stays). Each shell's skin is preserved — the surface/rim/radius modifiers are independent of the inner rows. - Host (ThreadDetailView): mirrors expansion via onExpandedChange; hides the secondary roster/queued rows + the telemetry rail when idle; rounds the composer's bottom corners when the rail is hidden (attachedBottom follows expansion). - Welcome hero, ensemble (@-direct roster), and the side-chat mini composer stay always-expanded (forcesExpanded). A thread with a draft or queued prompt never collapses. Focus resets on iPhone thread-switch (the composer instance is reused across threads with no per-thread .id). Verified: swift build + 69 Kit tests + iOS app build (iPhone 17 sim). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
boggspa
added a commit
that referenced
this pull request
Jun 18, 2026
Build 22 = merged iOS batch: - PR #6: compact idle composer (collapses to a one-line text + send + model pill per shell when not typing/empty; expands on focus or content). - PR #7: guest removal actually clears the composer chip (Mac projects sideChatLifecycleState; iOS filters closed guests; bigger X hit target + "Remove guest" picker item). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
When the composer text field is not focused (and empty, no draft/queued/attachment), each shell now collapses to a single-line field + model pill + send — like the Claude / Codex mobile composers. Focusing it (or any pending content) expands it back to the full composer: model/approval/guest controls, roster/queued secondary rows, and the telemetry footer rail.
This is the Claude-style idle bar (keeps a model pill), per your pick.
How
Composer(ComposerView.swift): a@FocusStatedrivesisExpanded = focused || draft || attachment || queued || forced. Idle hides the approval + guest controls (the model pill stays as the compact control). The one-linetext + sendinput row already existed, so no new input layout was needed.ThreadDetailView): mirrors expansion via anonExpandedChangecallback (composerExpanded), and hides the secondary roster/queued rows + the telemetry rail when idle.attachedBottomnow follows expansion so the bar's bottom corners round when the rail is hidden.@-direct roster is core context), and the side-chat mini composer (forcesExpanded). A thread with a draft or queued prompt never collapses; focus resets on iPhone thread-switch (the composer instance is reused across threads).Verification
swift build+ 69 Kit tests + iOS app build (iPhone 17 sim) — all green.#252525inner module still backs the bar + bottom rounds), Grok (skin holds when the tucked tab disappears), Stub (perforation line on a one-line surface).Notes / follow-ups
ProviderModelPicker(already per-shell skinned).🤖 Generated with Claude Code