Skip to content

fix: missing current_role in build_messages_full + upstream sync#11

Merged
kmbandy merged 1 commit into
mainfrom
feature-forksync-v3
Mar 21, 2026
Merged

fix: missing current_role in build_messages_full + upstream sync#11
kmbandy merged 1 commit into
mainfrom
feature-forksync-v3

Conversation

@kmbandy
Copy link
Copy Markdown
Owner

@kmbandy kmbandy commented Mar 20, 2026

Summary

  • Fix NameError: current_role is not defined in build_messages_full — param existed in sync build_messages but was missed when build_messages_full was merged with upstream changes. Caused every agent invocation to fail silently.
  • Includes the full upstream sync from HKUDS/nanobot (~130 commits), see upstream-drift.md for details.

Test plan

  • nanobot.service starts and handles messages without NameError
  • MCP tools connect and reconnect on error
  • Web search (SearXNG/Brave fallback) works
  • Cron jobs respect tz field

🤖 Generated with Claude Code

build_messages_full used current_role at line 240 but never declared
it as a parameter (unlike the sync build_messages). Caused NameError
on every agent invocation after the upstream merge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kmbandy kmbandy merged commit b288640 into main Mar 21, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant