Repository navigation
org: the desktop app opens hosted chats on an organization's server (engine) - #2904
Merged
Merged
Conversation
…stop say it Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ent, and agents.hosted_list Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…gn-in, and keep the status of a refusal Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rver Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… chats Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… an organization Drive the built codeaf app over its JSON lines against a stand-in organization server whose chat wire is bridged to a real codeaf engine with a scripted model. It starts a hosted chat from the organization's connection and reads back the engine's own answer, keeps the chat out of the local list and the local places tree, closes it without stopping it, reopens it on the same app and after an app restart, and shows one plain sentence, with nothing started locally, for a dead server and for a revoked sign-in. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
AbirAbbas
marked this pull request as ready for review
November 25, 2026 01:50
AbirAbbas
added a commit
that referenced
this pull request
Nov 25, 2026
…ack (#2903) The hosted organisation line: a team-mode org server deciding every request through one access model (verbs, roles, grants and policy in SQLite), hosted chats run by the sessionhost under a per-chat uid inside a Landlock fence with minted model bearers, sealed keys and a git helper, shared chats acting through verbs, bots owned by their creator, the Hosting and chats policy settings, and a self-hosting stack (deploy/org Docker Compose, published images behind a leak gate, a Railway path). Consolidates #2894 #2895 #2896 #2898 #2899 #2900 and the follow-ups #2904 #2905 #2907 #2908 #2910 #2911 #2912 #2913 #2915 #2916 #2918 #2927 #2936 #2944. Proven by the full suite, a keyless Compose smoke, a hostile wire client, sandbox escape probes, a real-model run and a production-style install from the published images. Co-Authored-By: Santosh kumar <[email protected]> Co-Authored-By: ZeroPoint95 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft, into
org/main(the hosted organization feature line). Not fordev.What this does
codeaf app(the engine the desktop app drives) can now create, list, reopen, drive and close hosted chats on an organization's server. The desktop half is a separate pull request in the desktop repository, written against the same wire contract.agents.hosted. An engine without it is "old": the desktop behaves exactly as it does today.agents.createtakesorg(the organization's connection id). With it the chat is made on that organization's server (POST /v1/hosted/sessions) and held through the same WebSocket wirecodeaf chat --orguses, as an ordinary app conversation, so the thread, tools, questions and stop work unchanged. Nothing is created locally: no conversation folder, transcript or workspace.agents.hosted_list {org}answers the person's own hosted chats plus chats shared with them (available, and the server'shostingobject passed through). Someone else's private chat never appears: the engine lists exactly what the server lists.hs_<24 hex>_<connection>), so reopening after a restart needs no registry. Hosted views live in a separate in-memory map and are never in the local list, inbox, search, crews, factory or sync.agents.closereleases the connection and never stops or deletes the session.<host> is unreachable.,Sign in to <host> first., or the server's own sentence). A refusal the server writes for a guest reaches the caller unchanged.agents.hosted_listand the per-chathosted.verbslet the desktop draw only a guest's verbs. An organization window never runs a chat locally, sohosting.local_sessionsofrefuseis honoured by construction.Validation contract and proof
TestAppHostedV1CreateOnOrganizationServerTestAppHostedV2ListOnlyOwnAndSharedTestAppHostedV3ReopenHistoryAndDetachorgbehave as beforeTestHostedV4OldEngineKeepsPersonalCreate,TestAppCreateWithTextStartsTheTurnAndNamesTheAgentviewTestAppHostedV5GuestVerbsAndExactRefusalTestAppHostedV6FailuresNeverRunLocally--org, app create and factory tests unchangedavailableandhostingon the list; a hosted-off server isavailable: false, not an errorTestAppHostedV8ListAvailabilityAndHostingPolicyAlso
TestHostedAgentIDShape(the id table).One test beyond those, tag-gated (
-tags e2e, no API key, no network):TestOrgAppDoorE2Edrives the builtbin/codeaf appover its JSON lines against a stand-in organization server whose chat wire is bridged to a realcodeaf enginewith a scripted model. It asserts the attach, one create, the first turn's replyokafter the scriptedhello hosted, the same answer after close, reopen and an app restart (three wire upgrades, one create, no stop or delete), the list'savailableand the owner's verbsview comment edit run steer answer share manage, and the two failure sentences<host> is unreachable.andSign in to <host> first.with the local list and places unchanged.Not proven here
The tests drive the real app backend and the real remote protocol against HTTP and WebSocket fixtures. A run against a live organization server and the desktop UI is not part of this change; the stand-in server is a fixture, not the real sessionhost.
🤖 Generated with Claude Code