Skip to content

fix(agent-importers): include -p <profile> in the printed cron resume command - #324

Closed
salch-cred wants to merge 1 commit into
NousResearch:mainfrom
salch-cred:fix/agent-importers-resume-profile-flag
Closed

salch-cred wants to merge 1 commit into
NousResearch:mainfrom
salch-cred:fix/agent-importers-resume-profile-flag

Conversation

@salch-cred

Copy link
Copy Markdown
Contributor

Fixes part of #265 (the per-profile path prints a resume command that fails as printed).

Summary

When a Grok Bot / OpenBot import runs inside a non-default profile (hermes -p scout migrate grok-bot ...), the paused routines are created in that profile's cron store, but the printed follow-up command was always:

hermes cron resume <id>    # <destination>

without the -p <profile> flag, so running it as printed fails with "Job with ID or name '' not found" (it looks in the default profile).

Fix

_print_routine_next_steps now resolves the active profile from get_hermes_home() via profile_name_for_home and prefixes the printed command with -p <profile> when it is not default. The default profile keeps the original, flag-less form.

Testing

agent-importers/tests/test_grok_bot_import.py (4 pre-existing failures unrelated to this change; verified they also fail on main before my edit).

@salch-cred
salch-cred requested a review from teknium1 as a code owner November 7, 2026 02:08
@teknium1

teknium1 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for this. #290 by @ree2507 makes the same fix and came first with a regression test, so I'm closing this one as a duplicate. Review and landing continue on #290.

@teknium1 teknium1 closed this Nov 9, 2026
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.

3 participants