#3404·picoclaw

Reliability fixes with reproducers (wave 1)

Author: x1F916Created Sep 28, 2026Updated Sep 28, 2026

Hi maintainers

I went through PicoClaw's core (agent loop, channels manager, config, updater) and found several bugs that are reproducible on current main (bbf6893) and v0.3.1. Some of them were reported or even fixed before, but those issues/PRs were closed by the stale bot before anyone could review them, so I am collecting them here in one place. Every PR below contains a regression test that fails on main and passes with the fix, plus an end-to-end check with a real gateway build.

PR Bug Impact Prior reports
#3399 fix(updater): select the matching 32-bit ARM release asset picoclaw update on GOARCH=arm installs the arm64 archive 32-bit Raspberry Pi / ARM boards get a binary that cannot run —
#3400 fix(config): persist all api_keys and enabled flag of multi-key models any config save keeps only the first of several api_keys, leaves dangling __key_N fallbacks; multi-key models are hidden from picoclaw model silent loss of credentials #3373
#3401 fix(channels): make Reload synchronous and nil-safe hot reload with an enabled-but-not-ready channel (e.g. Telegram without token) panics the gateway; a changed channel keeps receiving but never replies until restart gateway crash / silent outage —
#3402 fix(agent): resolve the owning agent in context managers chats routed to a non-default agent lose their history; summarization/compression never run for them broken multi-agent setups #3301, #3316 (carried, original authors kept)
#3403 fix(agent): deliver async tool results to the originating session results of spawn from all chats are appended to the default agent's main session; one user's result becomes context for another user's reply cross-chat data leak #2041, #2794

Each PR is small and independent, so they can be reviewed and merged in any order. Could you please add keep-open to these PRs so the stale bot doesn't close them while they wait for review? I'll keep them rebased and respond to feedback quickly.

Next wave (not yet submitted):

  • send on closed channel panic when a channel worker is stopped while the dispatcher enqueues (StopAll / UnregisterChannel)
  • async summarization drops messages appended during the LLM call
  • web UI: multi-key models lose keys on edit via PUT /api/models/{i} and PATCH /api/config
  • tests that write outside temp dirs when run as root (TestSetDefaultModel_SaveConfigError creates /nonexistent/...)

Suggested reviewers per CONTRIBUTING: @lxowalle @yinwm @alexhoshina @Zhaoyikaiii

Thanks for PicoClaw!