Skip to content

A guest's message or steer waits while the owner has the chat open #2928

Backlog

Description

@AbirAbbas

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

When a hosted chat is shared with someone at edit or full, the chat still lets only one window type at a time. The guest's window joins as a watcher and does not take the keyboard. While the owner's window holds it, a message or a redirect the guest sends is refused by the chat in its own words ("the keyboard is in another window right now — press enter here to move it here"). It goes through once the owner closes their window, or after the guest sends Take (allowed with run), which moves the keyboard off the owner's window and tells it. Interrupting a turn and answering a question are not held up. In a two-person test with both windows open and typing, most guest messages came back with that sentence.

I did not add a setting, because there is no small version of this. The choice is how two people's input should interleave in one chat, and that is a product call: should a guest's message wait, queue behind the running turn and show in the owner's window, or take the keyboard from the owner? What does the owner's window show if it loses the keyboard mid-sentence? Does the answer depend on the role?

Where it lives:

  • internal/remote/server.go, dispatch: calls mayDrive before every door that puts words into the conversation (Submit, SubmitBash, SubmitImage, SubmitFiles, FollowUp, Steer, ReplaceQuestion and the task and process doors).
  • internal/remote/driver.go: mayDrive, notDrivingWord (the sentence) and takeLocked.
  • internal/remote/server.go, Session.attach: a hello with back: true never takes the keyboard on arrival.
  • internal/factory/serve/hosted_guest.go, rewriteHostedGuestHello: every guest hello is rewritten to back: true with a guest: client id, and hosted_guest_methods.go lets Take through with run.

A change would either give the engine a guest class (a window that may submit without holding the keyboard, with a defined order against the owner's own input), or have the guest wire send Take for the guest before its first send. Both change what the owner's window draws, in the terminal (internal/tui3) and in the desktop app. docs/organizations.md and deploy/org/README.md list this as a known limit today.

Activity

  1. added
    needs a ruling
    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

    needs a ruling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions