Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions FORK.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Mobile follows the same add-beside rule with a fixed seam set, decided on 2026-0
- J5 mobile code lives under `apps/mobile/src/j5/`. Presentation and state that web also needs (A2A envelope parsing, notice and Crew formatting, Inbox ordering) live once under `packages/client-runtime/src/j5/`; neither client keeps its own copy.
- Upstream mobile files are edited only at these reserved seams, each an import plus one call into J5 code. A seam becomes a numbered case below when it lands; the Timeline delegate and the Queue-row formatter are case 97, and Route registration (for Artifacts) and the Link resolver are case 98.

| Seam | Upstream site | J5 behavior behind it | In the tree |
| ------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| Timeline delegate | `features/threads/ThreadFeed.tsx` message rows | The A2A timeline's groups from the shared classifier, `packages/client-runtime/src/j5/userMessagePresentation.ts` (web case 7) | Landed: case 97. |
| Queue-row formatter | `features/threads/ThreadQueueControl.tsx` | `From <sender>: <first line>` for queued deliveries (web case 24) | Landed: case 97. |
| Thread-row identity | `features/threads/thread-list-v2-items.tsx` | Crew membership (web case 23) | Not landed. The row mounts only the persona's `AgentIdentityChip`, at upstream's title inset. |
| Route registration | `Stack.tsx` and the settings row targets | J5 screens such as Inbox, Fleet and Artifacts | Landed for Artifacts (case 98): `Stack.tsx` spreads `j5ThreadArtifactRoutes`. Inbox and Fleet are not landed. |
| Link resolver | the thread feed's markdown link press (`features/threads/ThreadFeed.tsx`) | `artifacts/…` links open the artifact instead of a workspace file | Landed (case 98). |
| Seam | Upstream site | J5 behavior behind it | In the tree |
| ------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Timeline delegate | `features/threads/ThreadFeed.tsx` message rows | The A2A timeline's groups from the shared classifier, `packages/client-runtime/src/j5/userMessagePresentation.ts` (web case 7) | Landed: case 97. |
| Queue-row formatter | `features/threads/ThreadQueueControl.tsx` | `From <sender>: <first line>` for queued deliveries (web case 24) | Landed: case 97. |
| Thread-row identity | `features/threads/thread-list-v2-items.tsx` | Crew membership (web case 23) | Not landed. The row mounts only the persona's `AgentIdentityChip`, at upstream's title inset. |
| Route registration | `Stack.tsx` and the settings row targets | J5 screens such as Inbox, Fleet and Artifacts | Landed for Artifacts (case 98) and the Inbox (case 101): `Stack.tsx` spreads `j5ThreadArtifactRoutes` and `j5InboxRoutes`. Fleet is not landed. |
| Link resolver | the thread feed's markdown link press (`features/threads/ThreadFeed.tsx`) | `artifacts/…` links open the artifact instead of a workspace file | Landed (case 98). |

- Any other edit to an upstream mobile file needs its own case, as on web. Existing J5 mobile edits keep their recorded cases (personas, playbooks, draft-as-agent, handoff artifacts, branding).
- `apps/mobile/src/j5/upstreamSeams.test.ts` lists every J5 edit to an upstream mobile file and fails when a file stops reaching the J5 code, so a rebase that drops one fails CI instead of silently removing J5 behavior. A reserved seam joins that list when it lands.
Expand Down Expand Up @@ -517,6 +517,8 @@ migrations after upstream migrations.

100. The mobile new-task composer gives a saved agent its own row and lets the slash menu cover the draft rows ([#866](https://github.com/Jacksondr5/j5code/issues/866), Jackson's direction at Checkpoint 1, 2026-11-01; register entry in the wave-2 docs PR). Upstream's composer shows the model in its input row and opens the slash menu above everything stacked over the input. In `apps/mobile/src/features/threads/NewTaskDraftScreen.tsx`, the draft controls render J5-owned `j5/agents/DraftAgentRow.tsx` under the checkout row: the saved-agent picker, then the chosen agent's persona, route and remove action. `apps/mobile/src/features/threads/ThreadComposer.tsx` renders the persona lock control only when `!props.isDraft`, so a draft's input row stays the editor, and wraps `ComposerPopoverAnchor` in a zero-height `relative` view placed after `draftControls`. The anchor's `bottom-full` (and the Android anchor's measured frame) then starts at the top of the input, so the menu draws over the checkout and agent rows instead of above them. A started thread has no draft controls, so its menu opens where it did.

101. Mobile has a J5 Inbox screen ([#830](https://github.com/Jacksondr5/j5code/issues/830)), landing the reserved Route registration seam for it. `apps/mobile/src/Stack.tsx` imports J5-owned `j5InboxRoutes` (`apps/mobile/src/j5/inbox/routes.ts`) and spreads it before `SETTINGS_SCREENS`, adding a root `Inbox` screen at `inbox` (`apps/mobile/src/j5/inbox/InboxScreen.tsx`). It reads every connected server's open and answered asks through J5-owned source atoms (`apps/mobile/src/j5/inbox/inboxSources.ts`, built as web's are, with `writesNowhere` for a person who can answer nothing), merges and orders them with `client-runtime/src/j5/inbox.ts`, and shows an older server's source notice. It rereads when it comes into view and on the server's inbox revision, with no timer. On a pin advance: if upstream reshapes `Stack.tsx`'s root screens, spread `j5InboxRoutes` among them again.

## Pin and upstream advance runbook

Current pin: `d2c440312e5f39d59827ed466838a623516454d6`, upstream's stable release tag `v0.1.3` on `main` (frozen 2026-10-27). The previous pin was `70d60e03a7a35c6fa131825bbfa05ec893e69912`, upstream's nightly tag `v0.1.1-nightly.20261017.3238`.
Expand Down Expand Up @@ -734,7 +736,7 @@ explicitly marked.
| `apps/mobile/src/features/settings/SettingsRouteScreen.tsx` | A | 72, Role library |
| `apps/mobile/src/features/settings/components/SettingsScreen.tsx` | N | 72 |
| `apps/mobile/src/features/settings/settings-environment-filter.tsx` | N | 72 |
| `apps/mobile/src/Stack.tsx` | A | 72, 98, Role library |
| `apps/mobile/src/Stack.tsx` | A | 72, 98, 101, Role library |
| `apps/mobile/src/features/archive/ArchivedThreadsRouteScreen.tsx` | N | 72 |
| `apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx` | N | 90 |
| `apps/mobile/src/features/threads/ThreadFeed.tsx` | N | 90 |
Expand Down
2 changes: 2 additions & 0 deletions apps/mobile/src/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { useConnectOnboardingNavigation } from "./features/cloud/connectOnboardi
import { AttachmentFileScreen } from "./features/files/AttachmentFileScreen";
import { ThreadFilesTreeScreen, ThreadFileScreen } from "./features/files/ThreadFilesRouteScreen";
import { j5ThreadArtifactRoutes } from "./j5/artifacts/routes";
import { j5InboxRoutes } from "./j5/inbox/routes";
import { AdaptiveWorkspaceLayout } from "./features/layout/AdaptiveWorkspaceLayout";
import { selectedPullRequestKey } from "./features/pull-requests/pullRequestSelection";
import {
Expand Down Expand Up @@ -977,6 +978,7 @@ const RootStackConfig = createWorkspaceStackNavigator({
sheetGrabberVisible: true,
},
}),
...j5InboxRoutes(GLASS_HEADER_OPTIONS),
...SETTINGS_SCREENS,
SettingsLegal: createNativeStackScreen({
screen: SettingsLegalRouteScreen,
Expand Down
Loading
Loading