Commit Graph

13 Commits

Author SHA1 Message Date
Teknium
21cd0af57d feat(desktop): make every new group chat run on a gateway
There is one kind of group chat. New group chat always plans a room its
gateway owns, whether the bots are on this computer or on others, so it
keeps running with Desktop closed. When that is not possible (Hermes too
old on the owner, an owner that cannot seat peers, a lender missing its
API server, address or approvals, an unreachable computer), the dialog
says what is missing on which computer, keeps the draft and offers Retry;
it never falls back to a Desktop-driven room.

Bots from a named profile on another computer now join too: lender
checks are keyed per connection and profile, the pin carries the profile
the lender's catalog names, and the invite asks that profile.

Removed: the Desktop-driven creation path, the "Start a group chat that
runs without Desktop" upgrade (canonical-group-upgrade.tsx) and the copy
only it and the courier note used. Existing Desktop-driven rooms keep
their history and composer, and a membership edit keeps them that way;
no edit makes a room Desktop-driven.
2026-11-07 12:00:23 -08:00
Teknium
9a7931dc31 feat(groups): lend any served profile to another gateway's group chat
A gateway could seat only its `default` profile as a cross-gateway group
chat member. Now any profile it serves can be lent:

- room_link()/groups.peer.invite advertise and mint for the connection's
  own served profile (the grant's target_profile).
- A named profile that inherits the gateway's room_link_url advertises
  `<room_link_url>/p/<profile>` in its catalog (covered by the digest), so
  every lender call runs under that profile's /p/ prefix scope: its home,
  config, .env secrets and state.db. A profile that sets its own
  room_link_url advertises it as is.
- Grants answer only on their own profile's route: the run routes
  (POST/GET /v1/runs, stop, approvals, events) now check
  claims.target_profile against the request profile, as the room-member
  routes already did. An unprefixed request is the listener's own profile.
- The owner no longer refuses a non-default peer target in
  groups.peer.register; the pinned target profile must still equal the
  catalog's execution_policy.target_profile.

test_session_group_peers.py::test_room_link_is_enabled_only_when_this_gateway_can_host_a_member
changes deliberately: a named profile now reports the next missing piece
(endpoint_required) instead of default_profile_required.
2026-11-07 12:00:23 -08:00
dokterdok
db786b1ce6 docs(desktop): explain peer group chats and their limits 2026-11-07 12:00:23 -08:00
dokterdok
b320030dfd docs(groups): explain closed keys and grants held during Disband
Document closed-key lifetime and Retry after a lost close reply while keeping the maintainer's non-admitting Discard and older-member refusal. Explain that grants received during Disband must be revoked before the group chat is deleted, and that recovery waits for the held driver lease before its deferral interval.

Requires the no-service guard, route-lock release, retained- and late-grant fixes, closed-key lifetime, lost-reply Retry, and renewed-lease recovery fixes.
2026-11-06 08:43:37 -08:00
dokterdok
b0ab988067 fix(groups): show and answer approvals from bots on another gateway
Project lender prompts into room approvals and answer with their observed
prompt identity and run generation without requiring a fresh status poll.
Keep that observation when the same verified peer route gets a new grant.
Return the local nonpending refusal for stale peer answers, preserve older
lenders, and document the gateway behavior.
2026-11-06 08:43:37 -08:00
dokterdok
ef905484b4 docs(groups): clarify owner and lender capability roles
Scope owner and lender checks to the canonical gateway, including forwarded
Desktop calls, and explain standalone serve differences. Document both roles
and prove a home with RoomLink disabled can register a peer and publish its
reply without changing runtime behavior.
2026-11-06 08:43:37 -08:00
David Dudok de Wit
030f317d5d docs(groups): explain gateway-owned cross-machine group chats
Document JSON-RPC seating and the current text/default-profile limits.
Distinguish group chats that keep running without Desktop from group
chats whose scheduling and message delivery require Desktop to stay
open.
2026-11-06 08:43:37 -08:00
David Dudok de Wit
9e95d4558a docs(desktop): explain gateway group chat controls and recovery
Describe capability checks, send recovery, Stop and approval behavior.
Document the gateway-owned and Desktop-driven group chat paths.

(cherry picked from commit 572a99dfdbd04d667918a8e8b2ba13f289ad2952)
2026-11-05 10:09:03 -08:00
Teknium
71736c9f32 docs(bot-mode): canonical-groups doc describes the roster rows, not the Refresh button
Also assert the whole Bots pane renders no Refresh button.
2026-11-03 21:59:42 -08:00
Teknium
3c2c9d470a feat: connect Desktop groups to canonical driver controls 2026-09-10 14:01:42 -07:00
Teknium
4d5db8201b fix: restore canonical desktop image thumbnails safely 2026-09-10 06:33:38 -07:00
Teknium
c862001140 test: verify native download boundaries and document transport scope 2026-09-08 11:50:11 -07:00
Teknium
da98497cdc test: keep native protocol fixtures within their runtime type boundary 2026-09-08 11:49:29 -07:00