Repository navigation
feat(mobile): manage thread actions queue and details - #395
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/mobile-parity-2-2
branch
from
November 9, 2026 13:12
6e4e7c5 to
94eba6d
Compare
nixuuu
added a commit
that referenced
this pull request
Nov 9, 2026
Thread details cut off both the working directory and current branch, and repeated model, permission, status and usage information already available elsewhere. The first commit removes that redundant block from web/desktop and mobile; the feature commit gives placement its own readable rows and a safe branch picker. - Show the complete wrapping path, collapse the home directory to `~`, emphasize the folder name and reserve space for copying. Show the full current branch, its base on a separate line, and detached HEAD explicitly. - Track each checkout's HEAD with a debounced file watch and direct reads after initial gitdir resolution. Share the watch between threads and retain reconnect/turn-end recovery. - Search local and known remote branches without fetching. The gateway enforces ownership and rejects active/queued turns, pending interactions, background work and open goals across the checkout, including path aliases. The worker reserves the checkout, requires a clean tree and lets git refuse branches already used elsewhere. There is no stash or force. - Route linked-thread operations to their home and gate both home and worker support through additive capabilities. Record “Branch switched to X by you” and deliver checkout context to the next agent input, including resumed sessions and shell inputs. A shell failure preserves the note for the next input. Ahead/behind remains available in Manage worktree; the placement section does not add periodic git scans. Contracts are additive, `WORKER_LINK_PROTOCOL` remains 1 and there is no database migration. ### Verification - Gateway↔worker coverage: live HEAD updates, local and remote switching, expired commands, dirty trees, branches used in another worktree, running/queued turns, shared checkout aliases, owner scoping and older workers. Linked-computer coverage checks home routing, viewer HEAD/notices and older-home refusal. Shell integration checks the actual harness input and recovery after a failed shell command. - Real browser on a private production server: light/dark, desktop 1280×800, narrow 880×900 and phone 390×844; short/typical/long directory paths, short branches and `feature/agent-email-channel-implementujesz-docelowa-architekture-agenta-ai`, detached HEAD, searchable branch selection and successful switching from desktop and phone overlays. No horizontal overflow or leftover section seams. The reserved branch area measured 128 px before and after the tested short/long switch. - Mobile changes are JS/TS only. EAS CLI 27.4.1 production fingerprints were generated for both platforms before/after: iOS `2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3`, Android `c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d`; both unchanged. Native device visuals were not checked. - Final repository checks pass: `bun install`, `bun run gen:check`, `bun run typecheck`, `bun run lint`, `bun run format:check`, the web build and `bun run check:tmp --timeout 30000` (1924 pass, 161 skip, 0 fail across 343 files; nothing left in the test temp directory). The initial 5-second-default run timed out in two existing plugin/skill tests; both passed in the complete run with a 30-second default. - Additional mobile checks: Expo Doctor passes 20/20; both Hermes bundle exports pass, and ESLint passes for the new picker/placement and the edited panel, sheets and thread state. The full Expo ESLint command also reports existing errors in other surfaces (including the unchanged ref assignment in `ThreadScreen`). CNG prebuild fails in `@expo/image-utils`/`jimp-compact` with `Could not find MIME for Buffer <null>`; native config and source assets are unchanged. Generated native folders were removed. This PR does not change native dependencies/configuration to address that separate issue. ### Copy audit (§8) - Duplicate model, permission, status and usage rows → removed. Each fact keeps its existing primary surface; no replacement copy or empty section. - Truncated path/branch with an inline competing base → “Worktree”/“Directory”, “Branch”, full values, a separate “from …” line and “Detached at …”. Sentence case, existing glossary and explicit text preserve meaning without relying on icons or colour. - New actions use verbs: “Switch branch”, “Search branches”, “Copy working directory”. The picker groups are “Local branches” and “Remote branches”; no confirmation or destructive wording is introduced. - New errors state the problem and next step: commit/discard changes, choose another branch, wait for work, reconnect or update the relevant computer. Empty/loading/search states are short and actionable. Raw git diagnostics and private paths are not exposed as errors. - No humour or “soul” copy. Checked with short, typical and long values at desktop and phone widths; accessible labels name actions and errors use alerts. The requested full-path tooltip supports inspecting the complete path. Related: #392, #395
This was referenced Nov 13, 2026
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.
Normal thread work is available from mobile: one shared action sheet opens from the header or sidebar long press, queued messages can move or steer immediately, and thread details expose usage, paths, grants, schedules, worktrees and background tasks.
The action sheet respects confirmation preferences and uses the existing lifecycle RPCs. Thread and queued-message deletion provide an 8-second Undo; deleting an open thread or its parent navigates away and Undo can reopen it. Queue ordering preserves platform turns and leaves the default steer/queue preference unchanged.
Details show own-turn token/cost totals, label partial totals as “loaded turns”, show the latest reported context window, and copy directory/worktree paths with expo-clipboard. Schedule links filter the existing editor to this thread. The worktree link opens the current worktree without bulk cleanup controls. Paged snapshots retain background task items outside the loaded turn window, so the list survives reopening.
Validation:
2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3; Androidc5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d. Both unchanged; no dependencies or native configuration changed.Copy audit — docs/copy.md §8:
Manual checks after a compatible OTA is available:
The final rebase includes #377–#378 and #385. Background tasks now reuse the landed TextViewer; there is no timeline-link fallback or separate output viewer. Existing quote and send behavior is preserved.
Layer 2 of 3. Rebased onto dev at
8fb894e4: preserves #393 attachment steering, #398 previews and #388–#390 bot/settings parity, including the local thread move action. Existing bases and ready-for-review states are preserved.