You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d6e665
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add tests for useGitSidebar, useProviderModels, WebAgentChat, and hub-relay-client
- Implement tests for `useGitSidebar` to verify isolated branch switching behavior.
- Add tests for `useProviderModels` to ensure fallback behavior during remote discovery.
- Create tests for `WebAgentChat` to validate execution custody and event handling.
- Introduce tests for `hub-relay-client` to cover connection management and event subscription.
feat: implement web bridge routes for persistent state management
- Add functionality to manage web bridge routes in local storage.
- Ensure routes are recoverable across module reloads without losing authority.
feat: enhance surface UI state management
- Introduce state management for surface UI to isolate open drawers per chat session.
- Implement functions to set and check the open state of surfaces.
feat: add worktree selection management for chat sessions
- Implement worktree selection isolation for chat sessions and Git workspace tabs.
- Provide functions to resolve selected worktrees based on session context.
feat: define shared hub relay types for consistent protocol handling
- Create shared types for hub relay communication, including connection tickets and control frames.
feat: started the browser-parity work.
Implemented/connected:
- Browser attachment upload path
- MCP registry loading and secure ID-only server selection
- GitHub status, PR listing, workflow runs, issues,
- create/merge/approve operations
- OpenAI/xAI browser voice using Brain-held keys
- Browser editor formatting through workspace Prettier
- Persistent Stop button and provider model fixes
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ The shared React renderer supports desktop and direct browser clients. New rende
147
147
148
148
Remote-access credentials are authority boundaries. Pairing tokens must remain short-lived, memory-only, and single-use. Persist only device-session digests in owner-only atomic stores; enforce expiry and revocation. Browser HTTP/WebSocket origins must match exactly or be explicitly configured—never reflect arbitrary `Origin`/forwarded headers. Keep authentication limiters bounded, and do not hardcode CJ's `crewcode.logixhub.icu` deployment as a default Hub URL.
149
149
150
-
The self-hosted Hub is a separate `crewcode hub` process, not Electron renderer state. Keep its SQLite store owner-only and server-side; persist WebAuthn public credentials and only digests of browser/CSRF secrets. Bootstrap credentials and WebAuthn challenges stay short-lived and memory-only. Require user verification, exact configured RP origin/id, one-use challenges, secure HttpOnly SameSite cookies, and CSRF checks for mutations. Machine enrollment tokens must also stay short-lived, memory-only, single-use, and rate-limited; persist only machine bearer digests at the Hub and keep the brain credential file owner-only. Presence is outbound-only and revocation must fail closed. Do not let Hub identity or machine presence imply brain execution authority: tickets, relay, command scope, and brain-side authorization remain separate gates.
150
+
The self-hosted Hub is a separate `crewcode hub` process, not Electron renderer state. Keep its SQLite store owner-only and server-side; persist WebAuthn public credentials and only digests of browser/CSRF secrets. Bootstrap credentials and WebAuthn challenges stay short-lived and memory-only. Require user verification, exact configured RP origin/id, one-use challenges, secure HttpOnly SameSite cookies, and CSRF checks for mutations. Machine enrollment tokens must also stay short-lived, memory-only, single-use, and rate-limited; persist only machine bearer digests at the Hub and keep the brain credential file owner-only. Presence and relay connections are outbound-only and revocation must fail closed. Hub connection tickets remain short-lived, memory-only, one-shot, browser-session/user/machine bound, and exact-origin protected. Relay application frames must stay end-to-end encrypted and ordered; the Hub may route metadata but must not receive RPC/source/terminal/agent plaintext. Do not let Hub identity, machine presence, or requested ticket scope imply Brain execution authority: `crewcode brain` defaults to no RPC grants, and every decrypted method must pass both explicit Brain-local scope and registered-workspace validation. Relay loss means pending outcomes are interrupted, never successful.
0 commit comments