Skip to content

fix(#980-bug10): jtag CLI accepts JSON-blob as first positional arg - #996

Merged
joelteply merged 2 commits into
canaryfrom
mac/980-bug10-jtag-json-positional-v2
May 2, 2026
Merged

joelteply merged 2 commits into
canaryfrom
mac/980-bug10-jtag-json-positional-v2

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Carl's #980 Bug 10. ./jtag collab/chat/send '{"message":"hello"}' now unpacks the JSON into named params instead of getting a misleading "message must have content" validator error.

🤖 Generated with Claude Code

Test and others added 2 commits May 1, 2026 21:10
Carl's #980 Bug 8: chat/send accepted messages + returned success even
when zero AI personas exist in the system. Cascade from seed-failure:
no personas seeded → agent/list returns [] → user types "hello", gets
nothing back, no signal anywhere.

Cheap probe (limit 1) for persona-type users; warn in result message
when count is zero. Message is still stored (non-blocking on result),
but the user gets a clear "stored but no listener" hint with a
diagnostic command + re-seed pointer.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Carl's #980 Bug 10: `./jtag collab/chat/send '{"message":"hello"}'`
failed with "Message must have either text content or media" — the
JSON blob was treated as opaque positional, never unpacked into
named params. Misleading: looked like a malformed message when it
was actually a CLI param-shape mismatch.

Now the parser detects when the first positional arg is a JSON object
literal, parses it, and merges each top-level key into params.
Explicit --key=value flags still win (override JSON-blob keys), so
users can pass a JSON template and override one field at a time.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply
joelteply merged commit 8b03fd5 into canary May 2, 2026
3 checks passed
@joelteply
joelteply deleted the mac/980-bug10-jtag-json-positional-v2 branch May 2, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant