From 757cedc233dbfb0cf276e5503dc245e6523616ba Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 6 Dec 2025 23:21:25 +0000 Subject: [PATCH] fix: remove legacy relay references --- AGENTS.md | 2 +- CHANGELOG.md | 2 +- apps/macos/Sources/Clawdis/PermissionsSettings.swift | 6 ++---- docs/refactor/web-relay-troubleshooting.md | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 075c17442..7479a38d9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,7 +34,7 @@ - Pi/Tau sessions live under `~/.clawdis/sessions/` by default; the base directory is not configurable. ## Agent-Specific Notes -- Relay now runs inside the mac app (child process tied to the menu bar toggle), not via launchd. Restart by quitting/reopening the Clawdis app or running `scripts/restart-mac.sh`. Avoid tmux unless you intentionally spin up a temporary relay and clean it up afterward. +- Relay is managed by launchctl (label `com.steipete.clawdis`). After code changes restart with `launchctl kickstart -k gui/$UID/com.steipete.clawdis` and verify via `launchctl list | grep clawdis`. Use tmux only if you spin up a temporary relay yourself and clean it up afterward. - Also read the shared guardrails at `~/Projects/oracle/AGENTS.md` and `~/Projects/agent-scripts/AGENTS.MD` before making changes; align with any cross-repo rules noted there. - When asked to open a “session” file, open the Pi/Tau session logs under `~/.tau/agent/sessions/clawdis/*.jsonl` (newest unless a specific ID is given), not the default `sessions.json`. - Menubar dimming + restart flow mirrors Trimmy: use `scripts/restart-mac.sh` (kills all Clawdis variants, runs `swift build`, packages, relaunches). Icon dimming depends on MenuBarExtraAccess wiring in AppMain; keep `appearsDisabled` updates intact when touching the status item. diff --git a/CHANGELOG.md b/CHANGELOG.md index e0b88a46b..0d04e481c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,7 +40,7 @@ - **Pi/Tau stability:** RPC replies buffered until the assistant turn finishes; parsers return consistent `texts[]`; web auto-replies keep a warm Tau RPC process to avoid cold starts. - **Claude prompt flow:** One-time `sessionIntro` with per-message `/think:high` bodyPrefix; system prompt always sent on first turn even with `sendSystemOnce`. - **Heartbeat UX:** Backpressure skips reply heartbeats while other commands run; skips don’t refresh session `updatedAt`; web heartbeats normalize array payloads and optional `heartbeatCommand`. -- **Control via WhatsApp:** Send `/restart` to restart the launchd service (`com.steipete.clawdis`; legacy `com.steipete.warelay`) from your allowed numbers. +- **Control via WhatsApp:** Send `/restart` to restart the launchd service (`com.steipete.clawdis`) from your allowed numbers. - **Tau completion signal:** RPC now resolves on Tau’s `agent_end` (or process exit) so late assistant messages aren’t truncated; 5-minute hard cap only as a failsafe. ### Reliability & UX diff --git a/apps/macos/Sources/Clawdis/PermissionsSettings.swift b/apps/macos/Sources/Clawdis/PermissionsSettings.swift index 8a2c60c24..a6d72dd59 100644 --- a/apps/macos/Sources/Clawdis/PermissionsSettings.swift +++ b/apps/macos/Sources/Clawdis/PermissionsSettings.swift @@ -43,10 +43,8 @@ struct PermissionStatusList: View { @MainActor private func handle(_ cap: Capability) async { - Task { - _ = await PermissionManager.ensure([cap], interactive: true) - await self.refresh() - } + _ = await PermissionManager.ensure([cap], interactive: true) + await self.refresh() } } diff --git a/docs/refactor/web-relay-troubleshooting.md b/docs/refactor/web-relay-troubleshooting.md index 997791b85..e8dcf0f16 100644 --- a/docs/refactor/web-relay-troubleshooting.md +++ b/docs/refactor/web-relay-troubleshooting.md @@ -5,7 +5,7 @@ - **Logged out:** Console prints “session logged out”; re-link with `warelay login --provider web`. - **Repeated retries then exit:** Reconnects are capped (default 12 attempts). Tune with `--web-retries`, `--web-retry-initial`, `--web-retry-max`, or config `web.reconnect`. - **No inbound messages:** Ensure the QR-linked account is online in WhatsApp, and check logs for `web-heartbeat` to confirm auth age/connection. -- **Fast nuke:** From an allowed WhatsApp sender you can send `/restart` to kick `com.steipete.clawdis` via launchd (legacy: `com.steipete.warelay`); wait a few seconds for it to relink. +- **Fast nuke:** From an allowed WhatsApp sender you can send `/restart` to kick `com.steipete.clawdis` via launchd; wait a few seconds for it to relink. ## Helpful commands - Start relay web-only: `pnpm warelay relay --provider web --verbose`