Skip to content

Tell the desktop app when a hosted chat is shared with someone #2931

Backlog

Description

@AbirAbbas

This is on the org/main feature line (#2903), not in dev.

The organization server already says when a hosted chat is shared with someone, or unshared: a grant added or removed on a chat appends resource.changed {"kind":"session","id":"hs_..."} to GET /v1/events, to the union of the people who could see the chat before and after, so the person who gains or loses it is among them (grantChanged in internal/factory/serve/access_grants.go; TestP2_1_PrivateHostedChatsAndEvents checks that the new grantee receives it).

The engine never passes it on. relayOrg in cmd/codeaf/appfactory_org_events.go relays only team, workstream, canvas, presence, agent and task-work events as factory.org_changed, and drops anything else, and the kind of appwire.FactoryOrgChanged (internal/appwire/factory_org_events.go) has no session value. So the desktop app has nothing to react to when a chat is shared with its person, and an open organization window learns about it only on focus or when its Agents panel opens. In two end-to-end runs the shared row had not appeared after 10 seconds and appeared as soon as the window got a focus event.

Whether to push it is a product call for the team; this issue is the half that lives here. A change would add a resource.changed kind to factory.org_changed (relayed for session ids only, or for every resource kind), document it in docs/design/app-v3/PROTOCOL.md and add an engine feature word so an older engine is not assumed to send it, with a test beside the existing follower tests. No policy setting is involved. One thing to check first: the follower starts once a connection has answered an organization method, and I did not confirm that reading the hosted chat list counts as one.

The desktop side is filed in the desktop app's own tracker.

Activity

  1. added
    feature
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions