Repository navigation
#894 Reveal user message time by dragging the bubble left - #897
Conversation
Session Chat no longer draws the agent · model · time footer under user messages. Dragging a user bubble left (with its attachment chips) reveals its send time at the right edge, with the day under it for older messages, and springs back on release. Vertical drags still scroll, right drags do nothing, and tap / long-press message actions keep working. VoiceOver and TalkBack still read the agent, model and time. v1 records no agent/model change notices, so the timeline derives the same "Agent changed" / "Switched to" notices from consecutive v1 user messages (gated by a new recordsTimelineChangeNotices capability, true on v2). Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Automated review: 1 finding(s) that 2+ of 3 passes agreed on.
9 finding(s) from a single pass, not posted
android/app/src/main/java/dev/opencode/mobile/ui/components/chat/OpenCodeMessageTimeReveal.kt:206medium: Reveal ignores pointer consumption, fights list scroll (muse-spark-1.3-contributor)ios/OpenCode Mobile/OpenCode Mobile/Components/Chat/OpenCodeOutgoingMessage.swift:122medium: VoiceOver time mismatches revealed time in 24-hour locales (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/timeline/TimelineChangeNotices.kt:44medium: Blank providerId not normalized, spurious model notice (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/ui/components/chat/OpenCodeOutgoingMessage.kt:100medium: Attachment-only user messages lose the agent/model/time accessibility value (deepseek-v4.1-flash)ios/OpenCode Mobile/OpenCode Mobile/Components/Chat/OpenCodeOutgoingMessage.swift:150medium: VoiceOver loses agent/model/time for attachment-only outgoing messages (deepseek-v4.1-flash)android/app/src/main/java/dev/opencode/mobile/ui/components/chat/OpenCodeMessageTimeReveal.kt:103low: Same-year date ignores locale field order (muse-spark-1.3-contributor)ios/OpenCode Mobile/OpenCode Mobile/Components/Chat/OpenCodeMessageTimeReveal.swift:10low: 'Yesterday' hardcoded English, not localized (muse-spark-1.3-contributor)android/app/src/main/java/dev/opencode/mobile/ui/components/chat/OpenCodeMessageTimeReveal.kt:68low: 'Yesterday' hardcoded English, not localized (muse-spark-1.3-contributor)ios/OpenCode Mobile/OpenCode Mobile/Components/Chat/OpenCodeMessageTimeReveal.swift:163low: Fallback edge check uses screen width, not window width (muse-spark-1.3-contributor)
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.104 · 2 pass(es) stopped early
With the footer gone, a snackbar above the composer sat right on the last user bubble (Android covered it). Both snackbar hosts now report the height a shown snackbar takes, and Session Chat adds it to the timeline bottom inset, so the last row keeps the usual 16 end gap above it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gap between the last message and a snackbarWith the footer gone, a snackbar shown above the composer (here the one-time "Timeline: Activity Card" notice) sat on the last user bubble; it hid the bubble completely. While a snackbar shows, Session Chat now adds its height to the timeline's bottom inset, so the last message keeps the same 16 pt/dp end gap above the snackbar that it keeps above the composer. When the snackbar goes, the list settles back. Gaps between transcript rows stay at the shared 8 pt/dp message spacing on both platforms. Captured against the scenario harness (opencode v2, scripted model), dark mode.
|
The time reveal locked onto a left drag after 8 dp of travel in any direction, so a slightly diagonal swipe on a code block passed the reveal's check before the block's own touch slop and lost its scroll. The reveal now waits for the platform touch slop and yields once a child consumes the drag. Co-Authored-By: Claude Opus 5.5 <[email protected]>














Summary
OpenCodeMessageTimeRevealon both platforms, used byOpenCodeOutgoingMessage), so screens don't own it.UIPanGestureRecognizer(iOS 18+) that only begins for a mostly-left drag past ~8 pt, works alongside the list scroll, and cancels the list's pan once it locks (the same pattern as table row swipes). iOS 17 falls back to a simultaneous SwiftUI drag with the same direction lock. Drags that start within 20 pt of a screen edge, or on a code block that scrolls sideways, are ignored.pointerInputdecides the direction after 8 dp, consumes only a locked left drag, ignores drags that start in the system gesture insets, and springs back with anAnimatablespring.sentAtEpochMs(the optimistic send row uses the local send time).v1 decision
Session Chat only shows the "Agent changed" / "Switched to" notices because v2 servers record them; v1 servers don't. Hiding the footer would have hidden agent and model changes on v1. Every v1 user message still carries its agent and model, so the timeline now builds the same notices on v1 from consecutive user messages. It adds one before each user message whose agent or model differs from the previous one. The same model with a new variant shows "Switched variant to …".
Like v2, the first agent and model in a session get no notice. A new
recordsTimelineChangeNoticescapability (v2 true, v1 false) controls the derivation. v2 keeps only the server's notices, so there are no duplicates and no v1/v2 UI fork. Once the footer is gone, a v1 user can no longer see the agent and model of the session's first message in the chat (v2 already worked this way). The composer still shows the current agent and model, and screen readers still read them.Checks
xcodebuild test(OpenCode MobileTests), 2881 tests passed on the iPhone 16 Pro Max simulator.:app:testDebugUnitTestpassed (283 suites, no failures).ktlintMainSourceSetCheckstill fails, but only on violations that were already there; the new files are clean.Evidence
Screenshots are in the evidence comment.
Issue
Fixes #894
Risks / Follow-ups
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.