Skip to content

Merge upstream join3r/claude-project (2026-09-30: mobile client, chat bash mode, keep-awake) - #14

Merged
TeleporterGuy merged 23 commits into
masterfrom
merge-upstream-2026-09-30
Oct 1, 2026
Merged

TeleporterGuy merged 23 commits into
masterfrom
merge-upstream-2026-09-30

Conversation

@TeleporterGuy

Copy link
Copy Markdown
Owner

Merges join3r's 12 new commits: iOS mobile client + E2EE protocol + relay (new ios/, protocol/, relay/, desktop bridge in src/main), Claude chat bash mode / /permissions / copy buttons / side-panel menus, keep-awake, and a Windows LF fix for protocol test vectors.

Merged without conflicts; fork-only bits (README, CLAUDE.md/AGENTS.md guard, one Claude button) intact. New dependency: qrcode (installed from the merged lockfile with npm ci).

  • typecheck, lint (0 errors), tests (1471 passed), build
  • every preload IPC channel has a main handler (99)
  • CI (4 jobs)
  • Windows hands-on

🤖 Generated with Claude Code

join3r and others added 23 commits September 28, 2026 19:44
SwiftUI iOS app (ios/), shared protocol with test vectors (protocol/), Docker
relay (relay/), and the desktop side: pairing, identity, inbox, relay client
and chat view mapping (src/main/mobile/), plus Settings and pairing prompt UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop side of M2: ChatBridge answers the phone's chat.* ops and streams
evt chat diffs (throttled to 4/s, prompts and status at once) for the one
chat each phone has open. It attaches a runtime from the stored tab config
when the chat isn't live, maps answers through the shared prompt helpers,
and drops subscriptions on disconnect, re-handshake or a hidden project.
Covered by unit tests and a real-relay e2e flow (incl. fragmentation).

Settings → Mobile now renders the pairing QR with the qrcode package.

iOS: close the keyboard on send and when a prompt card appears; cap the
card at ~55% of the chat height and scroll inside it (measured outside the
bottom bar's inset to avoid a layout loop); give "Always allow" its own
row; keep the scroll-to-latest button off the Stop/Send button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex and shell tabs get their status from the window's PTY heuristics
(output, bell, going quiet), which main never saw, so the phone showed them
idle forever. Windows now mirror those tabs' statuses over
`report-tab-status` into TabActivityRegistry (never over 'exited'), and a
closed window's reports are cleared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SPEC.md §7: the phone registers its APNs token with our gateway and gets a
sealed push capability, hands it plus a per-desktop payload key to each
paired desktop (push.register), and desktops send {cap, data} over their
relay socket. Only the phone can read the payload.

- protocol: push.ts (registration signing, cap sealing, payload sealing,
  push.* params), push/pushed relay messages, push.json vectors
- relay: push gateway (per-device generations, rate limits, APNs HTTP/2
  with ES256 provider tokens, simctl and log senders), HTTP endpoints,
  upstream forwarding for self-hosted relays
- desktop: PushEmitter pushes new permission/question/plan prompts and
  turns a phone started, skipping a phone that has the chat open;
  registrations stored with the pairing (pairings.json now 0600),
  gone drops them; Settings shows which phones have notifications on
- iOS: Notification Service Extension, Allow/Deny actions answering from
  the background, Settings toggles, keys shared via the App Group keychain

Verified live on the simulator: gateway registration, a real Claude
permission prompt pushed via simctl, and Allow from the lock screen ran
the command. simctl push doesn't run service extensions, so decryption
on the phone still needs a device with real APNs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…down attachments

Windows testing found two notebook contents that were saved correctly but
never displayed:
- Outputs without PNG or text/plain (e.g. display({...}, raw=True), which
  is application/json only) rendered as nothing, so the cell looked empty.
  Outputs now show, in order: PNG, JPEG, SVG, plain text, sanitized HTML,
  markdown, pretty-printed JSON; anything else is named ("Output not shown
  here: <mime>") instead of silently hidden. PNG-then-text stays first so
  common outputs (pandas frames) look as before.
- Markdown cells' pasted images (`attachment:name`, bytes in the cell's
  attachments) were broken images. The preview now rewrites them to data
  URLs, which the markdown sanitizer and CSP allow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
truncateMimeBundle (run in main on every kernel output) turned every
mime value into text; a JSON object became "". The kernel helper already
passes JSON mime values through and drops oversized ones, so keep them
as-is here. Found on Windows: display({'application/json': ...}, raw=True)
showed "" under the cell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The App IDs and App Group for push are registered in the developer portal;
a device build now provisions both targets automatically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The example only allowed /v1 and /healthz, so /v1/push/register and
/v1/push/send got a 404 behind Caddy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nscripts (M4)

Protocol (SPEC.md §8): hellos list optional ops in `features`; a desktop
that answers `chat.new {taskId}` -> `{tabId}` lists "chat.new". Vectors
gain chat.new samples.

Desktop: `chat.new` appends a claude-chat tab to the task's left pane as
a main-side projects commit, so no window has to be open and none
switches to it. Hidden projects, home tasks and unknown tasks answer
not-found; shell-command projects and Claude turned off answer
unsupported.

iOS:
- "New chat" row in a task for desktops that list chat.new
- Settings -> Security: "Require Face ID for approvals" gates in-app
  answers, and makes the notification's Allow/Deny open the app and
  authenticate before answering
- the last transcript of each opened chat is cached and shown read-only
  while the desktop is offline
- returning to the foreground reconnects at once instead of waiting out
  the relay backoff

Verified on a physical iPhone against the production relay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tFlight release setup

- site/: devtool.awantech.sk landing/support and privacy policy (live)
- .github/workflows/mobile.yml: relay typecheck + tests, multi-arch relay
  image (pushed to ghcr.io/join3r/devtool-relay from master), DevToolKit
  tests and an unsigned simulator build
- iOS: 1024 px app icon, ITSAppUsesNonExemptEncryption=false,
  ExportOptions.plist for App Store Connect upload, release docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- FallbackKeychainStore.run: untyped throws; the typed-throws closure crashed
  Swift 6.3's MandatoryAllocBoxToStack pass
- unsolicitedEventsReachEverySubscriber: wait for the stream to end before
  sampling the event count

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mobile client: iOS app, E2EE relay and push gateway
…eep-awake

Claude chat tab:
- `!command` runs in the project's shell (ssh for remote projects), shows its
  output in the timeline and goes to Claude with the next message. Sent as
  <user-shell-*> tags: the CLI never echoes a message carrying <bash-input>,
  which left it "Queued". History reads both forms.
- `/permissions` opens a rules editor for allow/ask/deny in the local, project
  and user settings files; only permissions.<list> is rewritten, atomically,
  and symlinked settings files stay symlinks.
- Permission cards offer "Allow, switch to Auto" and show the rule
  "Always allow" would add.
- Copy button on markdown code blocks.
- A subagent's slow foreground Bash commands no longer show up as gray notices:
  the CLI reports them as tasks whose summary is the whole command line. Only
  background tasks that finish get a notice; subagent-owned tasks stay out of
  the task list.

Side panels:
- Projects/tasks: Reveal in Finder, and Delete asks first (naming the workspace
  worktrees a project delete removes, before the pre-flight that already
  deletes a clean workspace).
- File tree: Reveal in Finder.
- Notes and Git panel files get right-click menus (shared ContextMenu).

Main:
- Keep the system awake while any agent tab is working (powerSaveBlocker,
  'prevent-app-suspension'); Settings switch, on by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude chat tab:
- Status strip: context, then the plan limits, then cost. The limits are two
  thin bars (5-hour over weekly) and a countdown to the 5-hour reset. Hovering
  the bars shows each window's usage; hovering the countdown shows both reset
  times and countdowns. Drawn popovers, not `title`s, which can stay hidden.
- Local chats start in Auto when no settings file sets
  `permissions.defaultMode`; Shift+Tab cycles through Auto too.
- Model and effort chips name what the defaults resolve to, from the CLI's
  `get_settings` (`applied`): "Model: Default (Opus 5.5)",
  "Effort: Default (medium)". Refreshed on start, on a model or effort change,
  and after each turn. The CLI's own "Default" row no longer stands in for
  the model's name.
- A growing composer keeps the timeline's bottom edge in place, so the last
  line stays visible instead of going under it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The app-wide prompt sat under the Settings modal (z 60 vs 1200), so on any
other Settings tab it was hidden. It now uses a new --z-alert token above
modals. On Settings → Mobile the request replaces the consumed QR code in
the "Pair a phone" section and scrolls into view, instead of appearing as a
quiet row higher up the panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notebooks: show JSON/HTML/markdown/JPEG/SVG outputs and markdown attachments
- An IPython display object's text/plain placeholder
  ("<IPython.core.display.HTML object>") no longer hides its HTML,
  markdown or JSON; real plain text still wins, as before.
- Kernel HTML is sanitized without <style> and style attributes so an
  output cannot restyle or cover the app.
- Markdown outputs get the real theme instead of a hardcoded "dark".
- attachment: references inside code spans and fenced blocks are left
  as written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ache is cold

SessionStart runs before the CLI registers SDK hook callbacks, so the chat
tab's callback never saw it. Pass a command hook through `settings` instead:
it echoes its input to stderr, which comes back in the hook_response message
over the protocol channel, so it also works for ssh projects with no tunnel.

The input feeds the status pipeline (SessionStart status now reaches chat tabs)
and, on a resume the CLI reports as prompt_cache_likely_expired, a warning
above the composer with the re-cache size and estimated cost. The first send
clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A background chat tab measured scrollHeight 0 and pinned the textarea to
0px until the text changed. Skip sizing while hidden, re-measure when the
tab is shown, and add a one-line min-height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… + follow-ups, chat limit bars, cold-cache warning)

# Conflicts:
#	src/renderer/components/NotebookOutputs.tsx
#	src/shared/notebook.ts
#	tests/notebook-rich-output.test.tsx
@TeleporterGuy
TeleporterGuy merged commit 1c54c28 into master Oct 1, 2026
7 checks passed
@TeleporterGuy
TeleporterGuy deleted the merge-upstream-2026-09-30 branch October 1, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants