Open a channel only when the server accepts the join (closes #197) #198

Merged
clawbot merged 1 commits from issue-197-refused-join into next 2026-10-27 05:09:01 +01:00
1 Commits
Author SHA1 Message Date
sneak 557f3ed86e Open a channel only when the server accepts the join (closes #197)
check / check (push) Waiting to run
When the server refuses a JOIN, POST /api/v1/messages answers 200
with status "error" and sends the error numeric to the queue. Both
clients opened the channel anyway.

JoinChannel in internal/cli/api now returns an error unless the
status is "joined". cmdJoin then keeps its buffer and target and
prints its usual "Join failed" line. The web client opens no tab for
a refused join, whether it came from /join or from the saved
channels a fresh session joins again.

Model: opus-5-5
2026-10-27 03:42:55 +00:00