Repository navigation
Description
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: callsmayDrivebefore 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) andtakeLocked.internal/remote/server.go,Session.attach: a hello withback: truenever takes the keyboard on arrival.internal/factory/serve/hosted_guest.go,rewriteHostedGuestHello: every guest hello is rewritten toback: truewith aguest:client id, andhosted_guest_methods.goletsTakethrough withrun.
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