picoclaw/pkg
PeterChrz a3dd7fca24
fix(channels/buzz): drive NIP-42 handshake from relay rejection
Calling relay.Auth() immediately after RelayConnect signed an auth event
with an empty challenge tag. go-nostr keeps the relay's challenge on an
unexported field populated by its reader goroutine when the AUTH envelope
arrives, so the value is not yet set at connect time, and relays reject
the resulting event.

Subscribe first and run the handshake only once the relay answers
"auth-required". That guarantees the challenge has been read: the CLOSED
envelope is processed after AUTH on the relay's single reader goroutine,
and receiving it over a channel establishes the happens-before edge that
makes the read safe.

A second rejection after authenticating is a permissions failure rather
than a mistimed handshake, so it fails instead of retrying. Both waits
are bounded by a 15s timeout, and relays that accept without auth still
work via EndOfStoredEvents.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 22:06:34 -04:00
..
agent fix(tools): gate write_file overwrite guidance on available tools 2026-07-07 20:40:27 +08:00
audio Merge pull request #3129 from chengzhichao-xydt/codex/tts-close-error 2026-06-16 22:08:10 +02:00
auth fix(auth): canonicalize Google Antigravity provider and enhance credential management (#2599) 2026-04-21 16:28:29 +08:00
bus Merge pull request #2904 from SiYue-ZO/feature/fix-agent-loop-stability 2026-06-14 21:22:53 +02:00
channels fix(channels/buzz): drive NIP-42 handshake from relay rejection 2026-08-11 22:06:34 -04:00
commands fix(context): expose history tokens and remove leaked state files 2026-06-06 00:28:32 +08:00
config feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00
constants refactor: replace bool map with set-style map for internal channels (#472) 2026-02-19 11:48:17 +01:00
credential refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
cron feat(cron): add get and update actions to cron tool 2026-05-31 10:55:54 +08:00
devices refactor(runtime): drop non-session legacy context compatibility 2026-04-01 20:56:48 +08:00
events fix: resolve golines lint issue in subscription.go 2026-06-16 00:53:18 +08:00
evolution Merge pull request #3053 from chengzhichao-xydt/codex/store-lock-type-assert 2026-06-23 00:04:42 +02:00
fileutil fix(fileutil): explicitly ignore Close() error on directory file descriptor 2026-06-15 20:25:04 +08:00
gateway feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00
health fix(health): explicitly ignore json.Encode errors in HTTP handler responses 2026-06-26 22:57:48 +08:00
heartbeat refactor(runtime): drop non-session legacy context compatibility 2026-04-01 20:56:48 +08:00
identity fix(identity): support negative integers in isNumeric for Telegram group IDs 2026-03-21 17:09:02 +07:00
isolation fix: add ok checks for sync.Map LoadAndDelete/Load type assertions 2026-06-06 21:17:07 +08:00
logger unify all panic event to panic log file (#2250) 2026-04-01 23:26:49 +08:00
mcp fix: use %w instead of %v for error wrapping 2026-06-08 09:10:14 +08:00
media Fix 1886 media cleanup policy (#1887) 2026-03-23 12:13:59 +08:00
memory fix(session): tighten main-session alias detection to exact 3-part format 2026-06-04 11:01:10 +08:00
migrate fix: check Close() error after io.Copy to writable files 2026-06-07 12:09:01 +08:00
netbind fix(web): address latest Copilot review points 2026-04-14 23:39:59 +08:00
pid fix(pid): verify process identity in singleton PID check 2026-06-04 20:04:51 +08:00
providers fix(providers): resolve tool_use name/args from Function on reloaded history 2026-07-05 21:26:34 -07:00
routing feat(routing): add ordered dispatch rules 2026-04-01 22:13:04 +08:00
seahorse fix(seahorse): handle json.Marshal errors in grep and expand tools 2026-06-15 20:31:34 +08:00
session fix(seahorse,session): preserve created_at across history bootstrap 2026-05-26 14:05:20 +08:00
skills feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
state refactor: replace log.Printf/fmt.Printf with structured logger 2026-06-08 09:18:02 +08:00
tokenizer feat(seahorse): implement short-term memory engine (LCM) (#2285) 2026-04-05 09:05:16 +08:00
tools style(tools): wrap write_file guidance Sprintf for golines 2026-07-07 21:04:16 +08:00
updater Merge pull request #3185 from chengzhichao-xydt/codex/updater-checksum-body-close 2026-06-26 18:10:21 +02:00
utils Merge pull request #3143 from lc6464/fix/isatap-ssrf-guard 2026-06-26 22:59:41 +02:00
env.go Merge branch 'main' into version 2026-03-19 18:04:58 +08:00