Skip to content

fix(web): keep phone navigation and stop empty-conversation scans - #138

Merged
Dvorinka merged 8 commits into
mainfrom
feat/command-center
Nov 12, 2026
Merged

Dvorinka merged 8 commits into
mainfrom
feat/command-center

Conversation

@Dvorinka

Copy link
Copy Markdown
Owner

Summary

Phones keep a 56px icon rail on every project, channel, and thread. The full list opens as a drawer, threads cover only the conversation column, and swipe right replies, swipe left opens a thread, swipe right on the thread closes it. Phone light mode uses a warm gray so the screen is not near-white.

Local mode lists a new project once and can create and delete channels offline. A 401 on /api/events stops the login-screen reconnect loop.

list_conversations coalesces last_body and last_author, so an empty conversation no longer crashes with can't scan NULL into *string.

Echo v4.16.1 and DOMPurify 3.4.17 clear the high and critical advisories that already fail the security job on main.

Test plan

  • go test ./... with RELAY_TEST_DATABASE_URL (e2e Postgres) — pass, server package actually ran
  • npm test --prefix apps/web — 46 passed
  • tsc --noEmit and npm run build --prefix apps/web
  • go vet ./..., go build ./..., golangci-lint run — 0 issues
  • go test -tags webkit2_41 ./... in apps/desktop after the Echo bump
  • trivy fs --severity CRITICAL,HIGH — clean with the current DB
  • Phone 390 and desktop 1440, local mode: rail stays beside an open thread; phone light tokens are warm gray; desktop light is unchanged

Checklist

  • No API shape change. Empty last_body / last_author are "" instead of a scan error. OpenAPI unchanged.
  • No schema migration
  • No changelog file in this repo. README does not document phone navigation.
  • No secrets

This reply was sent via the Devin.ai agent on behalf of @Dvorinka — not written by the account owner directly.

Dvorinka and others added 7 commits October 13, 2026 01:04
… summary

Inbound hooks now accept generic monitoring payloads (service/state/
latency_ms/level/env/release/url/fields/at) on any channel with
intake_mode "ops". Payload lands in the new messages.meta jsonb column
(capped at 8 KiB); tags stay for filtering.

- GET /api/conversations/:id/ops: service board (worst-first), dense
  30-day worst-state strip, kind counts, last event. Only health-readings
  (status/uptime/health/probe/heartbeat/monitor or kindless) feed the
  board — deploy/error/log kinds get cards and counts but never
  overwrite service state.
- Web: OpsBar (board + strip) atop ops channels, OpsCard meta renderer
  distinct from chat rows, "ops" intake toggle + intake guide wiring.
- MCP: meta on message payloads, meta arg on send_message, new
  ops_summary tool — all still gated by agents_blocked.
- OpenAPI + generated client regenerated.

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
/api/events retried with exponential backoff forever on the login screen —
a 401 is permanent until the session changes, so the loop only produced
noise. Now, when no token is present, a failed stream triggers one probe
of /api/auth/session: 401 blocks further reconnects until the next
subscribe (post-login remount), while a probe failure keeps the normal
backoff for genuine network blips. Watchdog and visibility handlers skip
the blocked state.

stores/unread: two module-scope createMemo + one createEffect had no
owner, so dev mode warned "computations created outside createRoot".
Wrapped in detached roots — the store is app-lifetime by design.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The left rail hid itself inside channels and threads, and light mode on a
phone was near-white. Phones now keep a 56px icon rail on every project,
channel, and thread; the full list opens as a drawer. Threads cover only
the conversation column. Swipe right replies, swipe left opens a thread,
and swipe right on the thread closes it. Phone light mode uses a warm gray.

Local mode listed a new project twice and threw when the rail asked for
channels. Creating a project replaces by id, channels can be created and
deleted offline, and unknown local calls say they need a server instead of
throwing. CLI --help no longer prints a live token.

Authored By: TDvorak <info@tdvorak.dev>
Bring the branch up to date so the phone nav work and the last_body
scan fix ship in one pull request.

Authored By: TDvorak <info@tdvorak.dev>
Desktop was on labstack/echo v4.15.3, which Trivy flags as a critical
WebSocket upgrade bypass fixed in v4.16.1. The web app locked DOMPurify
3.4.16; 3.4.17 closes the template-bypass advisory. Main's security job
is already red on both, so this pull request would not go green without
the bumps.

Authored By: TDvorak <info@tdvorak.dev>
@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
relay-landing Ready Ready Preview Nov 12, 2026 8:04am UTC

@mira-tdvorak

mira-tdvorak Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Mira PR Walkthrough

This PR implements phone navigation improvements (persistent 56px icon rail, drawer navigation, swipe gestures for thread actions), enhances local mode with offline project/channel management, fixes a 401 reconnect loop on /api/events, and resolves a NULL scan crash in list_conversations by coalescing last_body/last_author. It also upgrades Echo to v4.16.1 and DOMPurify to 3.4.17 to clear security advisories. Backend SQL changes support the conversation query fix.

⚠️ Potential overlap with other open PRs — these may be stepping on this one:

  • #144 (merge-conflict risk) — Both PRs modify apps/web/src/components/Rail.tsx (phone rail behavior vs. new Issues rail entry) and internal/db/mcp.sql.go (conversation query changes vs. GitHub author identity columns), creating a realistic chance of merge conflicts. Shared: apps/web/src/components/Rail.tsx, internal/db/mcp.sql.go

16 files reviewed


Comment @mira-tdvorak help to get the list of available commands and usage tips.

@Dvorinka
Dvorinka merged commit b4c1fa0 into main Nov 12, 2026
7 of 10 checks passed

This branch was successfully deployed

1 active deployment
Preview — 72b061bc Deployed Nov 12, 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