Conversation
The API's PUT replaces the whole draft; update sent only the provided fields, silently wiping recipients, pid, topic, and body. Fetch the current draft first and merge the changed flags over it, making the documented PATCH-style semantics true. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ts_added)
Wraps GET /fmsg/ws. Token in the Authorization header (401 retried once
with a refreshed token), auto-reconnect with backoff, pings answered and
the read deadline renewed. --json emits NDJSON with a {"type":"ready"}
line after each (re)connect so scripts can catch up with list; --once and
--timeout for one-shot use; exit 2 when no event arrived.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 task
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 freeto 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.
Summary
fmsg watch [--events types] [--once] [--timeout D]command wrappingGET /fmsg/ws(upstream ask from fmsg-mcp-claude: OPEN_QUESTIONS remove wait command (route removed from web API) #8).internal/api.Client.Watch: bearer token in theAuthorizationheader (never the query string), 401 retried once with a refreshed token, auto-reconnect with backoff, pings answered and read deadline renewed.--jsonemits NDJSON:{"type":"ready"}after every (re)connect so scripts know when to do alistcatch-up, then one envelope per event (datain thelistitem shape).--once/--timeoutended before any event, 1 on error.github.com/gorilla/websocket(same lib as fmsg-webapi). README updated.Test plan
--json watch --onceprintedreadythen thenew_msgfor a message sent meanwhile; quiet--timeoutexits 2FMSG_CLI_REF=watch) — passes🤖 Generated with Claude Code