Skip to content

Use the bot's localpart, unchanged, for the default room workspace - #208

Merged
TroyHernandez merged 2 commits into
mainfrom
fix/lowercase-default-cwd
Sep 13, 2026
Merged

TroyHernandez merged 2 commits into
mainfrom
fix/lowercase-default-cwd

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

Summary

  • bot_agent_name() capitalised the Matrix localpart, so bot_default_cwd() fell back to ~/Cornelius and created it, while cerebro runs the bot from ~/cornelius. The name is now the localpart as written, and the fallback matches the instance directory for bots whose localpart is all lowercase. An instance directory with other capitalisation, such as ~/LilCasey, was mismatched before and still is.
  • Seen in cornelius's log after the cornball.ai checkout was renamed: matrix: topic cwd /home/troy/cornball_ai does not exist; falling back to /home/troy/Cornelius. The topic path is a separate, room-side fix.
  • Version bumped to 0.7.1.48 in its own commit. The subagent-async-default branch also carries a 0.7.1.48 bump, so whichever merges second needs a re-bump.

Test plan

  • test_rooms.R: the three bot_agent_name() expectations now assert the lowercase localpart. 272 asserts pass.
  • test_rooms_reactions.R, which exercises bot_default_cwd() and the topic fallback: 72 asserts pass.
  • Both run against the branch installed into an isolated library with R CMD INSTALL --library.

bot_agent_name() capitalised the Matrix localpart, so bot_default_cwd()
fell back to ~/Cornelius and created it, while cerebro runs the bot from
~/cornelius. The name is now the localpart as written, which matches the
instance directory for bots whose localpart is all lowercase.
@TroyHernandez
TroyHernandez merged commit 1eced1c into main Sep 13, 2026
0 of 2 checks passed
@TroyHernandez
TroyHernandez deleted the fix/lowercase-default-cwd branch September 13, 2026 15:41
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