Skip to content

fix(mobile): restore messages, models, files and send on v1 and v2 servers - #153

Merged
snhsish merged 1 commit into
mainfrom
fix/mobile-chat-load-send-parity
Oct 20, 2026
Merged

snhsish merged 1 commit into
mainfrom
fix/mobile-chat-load-send-parity

Conversation

@snhsish

@snhsish snhsish commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Fixes chat screens that loaded the sessions list but left messages, models, files and send broken.

What changed

  • Version-aware data layer: all chat calls go through apiUrl()/getServerVersion() with {data} unwrapping and v1/v2 fallbacks (sessions, messages, send via /prompt on v2, abort via /interrupt, files via /api/fs/*, projects, agents, questions, permissions, diffs, recents, todos).
  • Shape normalization: v2 sessions (location.directory) and v2 models (modelID/disabled, missing status) mapped to app types; model picker defaults to All.
  • Connection fallback: useProjectConnection and chat fall back to current, then the sole connection, then any connection with credentials, so stale project mappings no longer render Not connected while a tunnel exists. Chat loads by sessionId plus live connection instead of gating on the cached session row.
  • Visible errors: offline and load-error banners with Retry in chat (plus an error empty state); send with no tunnel sets the send-error card instead of silently returning.
  • Copy: removed em/en dashes from user-facing strings.

Verification

  • npx tsc --noEmit in apps/mobile passes.
  • Manual check: Debug Logs HTTP filter for 404s, connect screen v1/v2 banner.

…rvers

Route all chat data calls through apiUrl()/getServerVersion() with {data}
unwrap and v1/v2 fallbacks (sessions, messages, send via /prompt on v2,
abort via /interrupt, files via /api/fs/*, projects, agents, questions,
permissions, diffs, recents, todos). Normalize v2 sessions
(location.directory) and models (modelID/disabled) to app shapes. Fall back
to a usable connection when the stored project mapping is stale so the
browser and chat never render Not connected while a tunnel exists. Show
offline and load-error banners with Retry in chat instead of failing
silently. Remove em/en dashes from user-facing copy.
@vercel

vercel Bot commented Oct 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
crosscode-web Skipped Skipped Oct 19, 2026 6:02pm UTC

@snhsish
snhsish merged commit 570cc5c into main Oct 20, 2026
6 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 39f2807a Deployed Oct 19, 2026 by vercel[bot]
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.

1 participant