Repository navigation
feat(mobile): two-row home header and session order by message activity - #595
Merged
Merged
Conversation
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.
Mobile home: two-row toolbar
The home screen used to stack three rows (device bar, category tabs, search + select). The tab row and the search/select row are now one row.
Default (two rows)
SessionsScreenno longer renders a tab row;onTabChangeis delegated toSessionList, which owns the single toolbar.Session ordering by last message activity
Ordering already used
COALESCE(last_message_at, updated_at, created_at) DESC, butlast_message_atwas only stamped when a run was created (a user prompt). Assistant output therefore never moved a conversation. The desktop observer now records activity on message content and run terminals too, so a reply that lands in a background conversation brings it to the top.last_message_atis written from the event's authoritative RFC3339timestamp; a projection snapshot derives it fromagent_start.started_at_ms + agent_end.duration_ms(a snapshot has no per-event timestamps). Replay attaches after a reconnect therefore cannot bump a conversation that has newer real activity, or corrupt the shared desktop/mobile order with local clock skew.last_message_at IS NULL OR last_message_at < ?1, so an older event, a duplicate cursor or a re-delivered sequence is a no-op.user_message/agent_end/error) always flush so a settled reply keeps its exact final time.last_opened_at), renaming, pinning and settings/heartbeat events (model_changed,usage,stream_retry, ...) leave ordering alone. Pinned threads still sort first.Tests
store::threads: newassistant_activity_reorders_threads_without_replay_or_metadata_bumps(assistant output beats a newer prompt; older/duplicate replay ignored; rename/open do not reorder; pins still win; deleted thread untouched;updated_atpreserved).agent_bridge::observer: newmessage_activity_uses_source_time_and_ignores_settings_and_missing_timestampsandmessage_activity_advances_on_output_and_flushes_terminal_without_replay_bumps.SessionList.test.ts(mode switching in place, no extra row, cancel restores the filter, Android back closes search, selection stays cancellable offline) and updatedSessionsScreen.test.ts(no tab row; category switching delegated).tsc --noEmit+eslint+ fulljest(882 passed); desktopcargo fmt --check,cargo clippy --all-targets -D warnings,cargo clippy --no-default-features --all-targets -D warnings, plus the store/observer/runs/remote_host test modules under both GUI and headless feature sets. The Windows-only pre-existing failures ingit_review/shadow_review::repository/transfer_loop_*/best_effort_canonical*/is_desktop_chat_cwd*are unchanged (CI runs these on Linux).