Commit Graph

5145 Commits (20d606c4c4bef7a2518fc8b9684fab7bcaadc358)

Author SHA1 Message Date
juanpablodlc 20d606c4c4 fix: use logical OR for sender ID fallback in command auth
The nullish coalescing operator (??) only skips null/undefined, not
empty strings. For direct WhatsApp messages, ctx.SenderId was an empty
string, causing senderRaw to be "" instead of falling through to the
valid ctx.SenderE164 value.

This caused commands like /status to be rejected with "unauthorized
sender" for self-chat WhatsApp messages.

Tested: Verified /status command now works correctly for self-chat
WhatsApp messages after the fix.
2026-01-12 06:20:51 +00:00
Peter Steinberger e388334127 test: cover pi session jsonl ordering 2026-01-12 06:19:58 +00:00
Peter Steinberger c9f2358769 test: clean unused var 2026-01-12 06:14:45 +00:00
Peter Steinberger 4044957819 test: fix lint warning 2026-01-12 06:14:45 +00:00
Peter Steinberger b185d130ba test: cover inline slash command fast-path 2026-01-12 06:14:45 +00:00
Peter Steinberger 2bed0d78af test: stabilize lan auto-token onboarding 2026-01-12 06:13:31 +00:00
Peter Steinberger 0baf08fda1 fix: dedupe minimax non-interactive auth 2026-01-12 06:13:31 +00:00
Peter Steinberger 048ee4b838 docs: expand minimax + cerebras setup 2026-01-12 06:13:31 +00:00
Peter Steinberger c4d85dc045 docs: refresh minimax setup docs 2026-01-12 06:13:31 +00:00
Peter Steinberger d0861670bd feat: simplify minimax auth choice 2026-01-12 06:13:00 +00:00
Peter Steinberger 744fadbded feat: loop configure section picker 2026-01-12 06:13:00 +00:00
Peter Steinberger 0f257f792a fix: fast-path slash commands 2026-01-12 06:10:17 +00:00
Peter Steinberger 53e04968fe docs: add peer override example + multi-agent link 2026-01-12 06:05:39 +00:00
Peter Steinberger 285906e546 docs: move model-split example to multi-agent 2026-01-12 06:05:39 +00:00
Peter Steinberger 5bc5b695a9 docs: add FAQ entry for multi-agent model split 2026-01-12 06:05:39 +00:00
Peter Steinberger 2da2057a37 feat(model): add /model picker 2026-01-12 06:02:39 +00:00
Peter Steinberger 121c9bd6f3 style: run swift lint/format 2026-01-12 05:42:10 +00:00
Peter Steinberger 7dbb21be8e feat: add pre-compaction memory flush 2026-01-12 05:29:18 +00:00
Peter Steinberger cc8a2457c0 fix: persist first Pi user message in JSONL 2026-01-12 05:18:05 +00:00
Peter Steinberger f5c851e11e fix(models): default MiniMax to /anthropic 2026-01-12 05:12:07 +00:00
Peter Steinberger b4a2cf8382 docs: update changelog 2026-01-12 05:08:11 +00:00
Peter Steinberger 873cee6947 feat: streamline wizard selection prompts 2026-01-12 05:08:07 +00:00
Peter Steinberger abdf4c30b2 docs: add sky camera showcase 2026-01-12 05:06:08 +00:00
Peter Steinberger 408f52a081 docs: update changelog 2026-01-12 04:58:38 +00:00
Peter Steinberger 51d5f16770 refactor: remove mac attach-only setting 2026-01-12 04:58:38 +00:00
Peter Steinberger 8e1cdf3a1f fix: require gateway client id
# Conflicts:
#	apps/macos/Sources/Clawdbot/GatewayChannel.swift
#	docs/concepts/typebox.md
#	docs/gateway/index.md
#	src/commands/onboard-non-interactive.gateway-auth.test.ts
#	src/commands/onboard-non-interactive.lan-auto-token.test.ts
#	src/gateway/call.ts
#	src/gateway/client.ts
#	src/gateway/gateway.wizard.e2e.test.ts
#	src/gateway/probe.ts
#	src/gateway/protocol/schema.ts
#	src/gateway/server.auth.test.ts
#	src/gateway/server.health.test.ts
#	src/gateway/server.ts
#	src/gateway/test-helpers.ts
#	src/tui/gateway-chat.ts
2026-01-12 04:58:38 +00:00
Peter Steinberger d26518687a fix(macos): restore gateway launch agent build 2026-01-12 04:58:38 +00:00
Peter Steinberger 986ff8c59f docs: add protocol docs 2026-01-12 04:44:27 +00:00
Peter Steinberger dfe5c03ba3 docs: document sharp/libvips install workaround 2026-01-12 04:25:05 +00:00
Peter Steinberger 87f270df23 test: respect openai max tokens floor 2026-01-12 04:04:04 +00:00
Peter Steinberger ee4dc12d51 docs: note env var source 2026-01-12 04:04:00 +00:00
Peter Steinberger 8b4bdaa8a4 feat: add apply_patch tool (exec-gated) 2026-01-12 03:42:56 +00:00
Peter Steinberger 221c0b4cf8 fix: tighten gateway listener detection 2026-01-12 03:34:42 +00:00
Peter Steinberger 1a25104a3d docs: add winix air purifier to showcase 2026-01-12 03:34:12 +00:00
Peter Steinberger 478a543e2e fix: guard mobile chat sidebar overlay 2026-01-12 03:29:20 +00:00
Peter Steinberger 6a012fd625 refactor: reuse resolved think default 2026-01-12 03:00:30 +00:00
Peter Steinberger d445cb420c
Merge pull request #750 from sebslight/fix/block-streaming-tool-boundary-flush
fix: flush block reply coalescer on tool boundaries
2026-01-12 02:56:01 +00:00
Peter Steinberger 1fa7a587d6 fix: flush block reply buffers on tool boundaries (#750) (thanks @sebslight) 2026-01-12 02:54:57 +00:00
The Admiral c64bcd047b fix: flush block reply coalescer on tool boundaries
When block streaming is enabled with verbose=off, tool blocks are hidden
but their boundary information was lost. Text segments before and after
tool execution would get coalesced into a single message because the
coalescer had no signal that a tool had executed between them.

This adds an onBlockReplyFlush callback that fires on tool_execution_start,
allowing the block reply pipeline to flush pending text before the tool
runs. This preserves natural message boundaries even when tools are hidden.

Fixes the issue where:
  text → [hidden tool] → text → rendered as one merged message

Now correctly renders as:
  text → [hidden tool] → text → two separate messages

Co-diagnosed-by: Krill (Discord assistant)
2026-01-12 02:52:48 +00:00
Peter Steinberger d4d15c8a71
Merge pull request #751 from gabriel-trigo/fix/think-default-743
fix: align /think default with model reasoning
2026-01-12 02:52:25 +00:00
Peter Steinberger 0efa6428d0 fix: align /think default display (#751) (thanks @gabriel-trigo) 2026-01-12 02:51:17 +00:00
Peter Steinberger 17e6354383
Merge pull request #748 from myfunc/main
fix(bash): use PowerShell on Windows to capture system utility output
2026-01-12 02:50:30 +00:00
Gabriel Trigo 99877e8e63 fix: align /think default with model reasoning 2026-01-12 02:50:13 +00:00
Peter Steinberger 98337a14b3 fix: rename bash tool to exec (#748) (thanks @myfunc) 2026-01-12 02:49:55 +00:00
Peter Steinberger 2164d1062e docs: fix faq config snippets 2026-01-12 02:41:24 +00:00
Peter Steinberger 76c8fc8697 fix(sandbox): canonicalize agent main alias 2026-01-12 02:23:02 +00:00
Peter Steinberger 828d9955f2 docs(voice-call): add Twilio setup guide 2026-01-12 02:16:14 +00:00
myfunc b33bd6aaeb fix(bash): use PowerShell on Windows to capture system utility output
Windows system utilities like ipconfig, systeminfo, etc. write directly to
the console via WriteConsole API instead of stdout. When Node.js spawns
cmd.exe with piped stdio, these utilities produce empty output.

Changes:
- Switch from cmd.exe to PowerShell on Windows (properly redirects output)
- Disable detached mode on Windows (PowerShell doesn't pipe stdout when detached)
- Add windowsHide option to prevent console window flashing
- Update tests to use PowerShell-compatible syntax (Start-Sleep, semicolons)
2026-01-12 02:13:02 +00:00
Peter Steinberger e3be5f8369 docs: require generic docs examples 2026-01-12 02:12:12 +00:00
Peter Steinberger d97c211e82 docs: make remote host examples generic 2026-01-12 02:11:33 +00:00