Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b7c4f50
Spike: Expo mobile client for Ness backends
frenchie4111 Nov 25, 2026
3439874
Spike: mobile/SPIKE.md findings write-up
frenchie4111 Nov 25, 2026
a41e9f0
Mobile spike: Ness-style UI and multiple backends
frenchie4111 Nov 25, 2026
0c9beae
Count a tab wake as activity; share automationLabel
frenchie4111 Nov 25, 2026
2bccd0b
Mobile spike: port the web client's phone UI to parity
frenchie4111 Nov 25, 2026
d0bf3e1
Phone web client: full right column instead of four panels
frenchie4111 Nov 26, 2026
8743945
Mobile: full right column (all panels + custom tools)
frenchie4111 Nov 26, 2026
ea10129
Touch-size the right column's controls on phones
frenchie4111 Nov 26, 2026
4e0587d
SPIKE.md: tools panel and simulator-driving notes
frenchie4111 Nov 26, 2026
90c8750
Mobile: 44pt targets on the backends screen
frenchie4111 Nov 26, 2026
1d4d19a
Mobile: fixes from the iOS 27 simulator pass
frenchie4111 Nov 26, 2026
0e33822
Mobile: reconnect after remount, VoiceOver modality, a11y labels
frenchie4111 Nov 26, 2026
cba5bce
Mobile: chat images, steady scroll, brand colour, smoother keyboard
frenchie4111 Nov 26, 2026
76a5f5c
Mobile: expansions survive scrolling; Jump to bottom lands
frenchie4111 Nov 26, 2026
ac95d9d
Mobile: launch links act once; warn on overlapping backends
frenchie4111 Nov 26, 2026
5a82f8c
Mobile: loading state while chat history loads; empty-chat card
frenchie4111 Nov 26, 2026
d9054a3
Chat tabs show live status on phones, like the desktop tab strip
frenchie4111 Nov 26, 2026
b2df0d4
Mobile: composer reaches the bottom edge when the keyboard is down
frenchie4111 Nov 26, 2026
255fe27
Mobile: chat images recover from failed loads; desktop image parsing
frenchie4111 Nov 26, 2026
b12eb85
Mobile: composer sits on the screen's bottom edge
frenchie4111 Nov 26, 2026
391f3eb
Mobile: collapse the composer after sending
frenchie4111 Nov 26, 2026
fd01d39
Mobile: bottom-align the composer's state and permission pill
frenchie4111 Nov 26, 2026
45c2bb4
Mobile: Ness colour themes
frenchie4111 Nov 26, 2026
e50772b
Mobile: call the server through the desktop's typed buildBackend API
frenchie4111 Nov 26, 2026
4bdd6be
CI: guard the mobile client against desktop and server changes
frenchie4111 Nov 26, 2026
8e7cc0c
Phones open a worktree on its Chat tab, not its Shell
frenchie4111 Nov 26, 2026
04ee23a
Mobile: long-press a message to copy or select its text
frenchie4111 Nov 26, 2026
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ jobs:
- name: Typecheck + build site
run: npm run typecheck:site && npm run build:site

# The Expo app (mobile/) imports shared state, transport and renderer
# modules from src/ and calls the server through the desktop's typed
# buildBackend API, so a desktop or server change can break it
# without touching mobile/. Typecheck catches signature and state
# shape drift; the iOS export catches a shared module growing an
# import Metro can't bundle (Node / DOM / Electron-only).
- name: Install mobile dependencies
run: npm ci --prefix mobile

- name: Mobile typecheck + unit tests
run: npm run typecheck:mobile && npm run test:mobile

- name: Mobile bundle
working-directory: mobile
run: npx expo export --platform ios --output-dir "$RUNNER_TEMP/mobile-export"

# The headless server bundle is built separately from the Electron
# build above (different vite config, different output dir). Builds
# both `dist-headless/main` and `dist-headless/web-client`.
Expand All @@ -64,3 +80,11 @@ jobs:
# runnable locally and not buried in YAML.
- name: Headless smoke test
run: bash scripts/smoke-headless.sh

# The mobile client's own NessClient / Fleet / list model driving the
# freshly-built headless server over WebSocket: snapshot, repo + worktree
# listing, aliases / pins / snoozes, panes and Chat tabs, tools-panel
# data. A renamed handler or changed state shape fails here. Logic in
# mobile/test/contract.test.ts.
- name: Mobile contract test
run: npm run test:mobile:contract
25 changes: 25 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,31 @@ Catches tarball-layout / module-resolution / boot-time regressions
before they ride a tag push to release. Run locally:
`npm run build:headless && bash scripts/smoke-headless.sh`.

### Mobile client guard on every PR

The Expo app in `mobile/` is a separate client of the same server, and it
reuses code from `src/`: the state slices + `rootReducer`, the WebSocket
transport, `renderer/build-backend.ts` (its **only** way to call the
server — never a hand-written channel string), and pure renderer modules
(`merge-backend-states`, `worktree-list-model`, `turn-collapse`,
`tool-display`, `chat-image-src`, `themes`, `theme-apply`). A change to any
of those, or to a request handler, can break the phone without touching
`mobile/`. CI guards it in four steps:

- `npm run typecheck:mobile` — signature / state-shape drift. Renaming a
channel or changing its args means updating `build-backend.ts`, and the
phone follows (or fails to compile).
- `npm run test:mobile` — unit tests in `mobile/test/`, including a check
that `mobile/src/themes.generated.ts` matches `styles.css` (regenerate
with `node mobile/scripts/gen-themes.mjs`).
- `npx expo export --platform ios` in `mobile/` — a shared module that
grows a Node / DOM / Electron-only import fails to bundle here. Keep
the modules above free of those.
- `npm run test:mobile:contract` (after `build:headless`) — the app's own
`NessClient` / `Fleet` / list model drive a fresh headless server.

Mobile deps are installed separately (`npm ci --prefix mobile`).

### Headless tarballs

The `Headless Release` workflow (`.github/workflows/headless-release.yml`)
Expand Down
41 changes: 41 additions & 0 deletions mobile/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/
expo-env.d.ts

# Native
.kotlin/
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo

# generated native folders
/ios
/android
41 changes: 41 additions & 0 deletions mobile/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
This is an Expo/React Native mobile application. Prioritize mobile-first patterns, performance, and cross-platform compatibility.

## Expo has changed — do not trust your training data

Expo ships breaking changes every SDK release. APIs you remember are likely renamed, moved, or removed. Before writing any code that touches an Expo, EAS, or React Native API:

1. Read the major version of the `expo` package in `package.json`.
2. Fetch the matching versioned docs: `https://docs.expo.dev/versions/v<major>.0.0/`
3. For anything else, fetch https://docs.expo.dev/llms.txt — an index of all Expo docs with corrections to common LLM misconceptions. Follow its links to the specific page you need; never answer from memory.

## Commands

Use `bunx` instead of `npx` if the project uses bun (`bun.lock` present).

```bash
npx expo install <package> # ALWAYS use instead of npm/yarn/pnpm/bun add — resolves SDK-compatible versions
npx expo start # start the dev server
npx expo lint # lint
npx tsc --noEmit # typecheck
npx expo-doctor # diagnose dependency and config issues
npx expo install --fix # fix incompatible package versions
```

Run lint and typecheck before declaring any task done.

## Navigation & Routing

- Use **Expo Router** for all navigation. Routes live in `src/app/` — every file there is a screen, `_layout.tsx` files define navigators. Keep non-route code (components, hooks, utils) outside `src/app/`.
- Import `Link`, `router`, and `useLocalSearchParams` from `expo-router`.
- Docs: https://docs.expo.dev/router/introduction.md

## Building with EAS

Use EAS to build, sign, and submit the app in the cloud (`eas build`, `eas submit`) and to ship over-the-air updates (`eas update`) — no local Xcode or Android Studio required. Run EAS CLI as `bunx eas-cli <command>` in Bun projects, or `npx eas-cli@latest <command>` otherwise; substitute that for bare `eas` in docs examples.
Docs: https://docs.expo.dev/eas/index.md

## Rules

- If `ios/` and `android/` directories do not exist, they are generated (Continuous Native Generation). Never create or edit them by hand — configure native behavior in `app.json` and config plugins.
- Expo Go only includes its bundled native modules. After adding a library with native code, the app needs a development build: `npx expo run:ios|android` locally, or `eas build --profile development`.
- Prefer recommended Expo modules over third-party libraries, and check your available skills before adding dependencies. Docs: https://docs.expo.dev/versions/latest/index.md
Loading
Loading