Skip to content

Conversation

@ramparte
Copy link
Contributor

Problem

When resuming sessions created before the profiles feature was removed, users encountered:

Error resuming session: config_manager and profile_loader required for profile mode

Root Cause

The _prepare_resume_context() function in session.py didn't default to a bundle when no bundle was found in saved session metadata. Old profile-based sessions have no bundle key in their metadata, so bundle_name remained None, causing resolve_config() to fall into "profile mode" which requires profile_loader - a component that no longer exists since profiles were removed.

Solution

Default to the "foundation" bundle when no bundle is found in saved session metadata. This matches the fallback pattern already used in run.py and tool.py.

Changes

  • amplifier_app_cli/commands/session.py: Added fallback to "foundation" bundle after checking for saved bundle in session metadata

Testing

  • Tested resuming an old profile-based session - now works correctly
  • Tested resuming a bundle-based session - continues to work as expected

When resuming sessions created before the profiles feature was removed,
users encountered:
  Error resuming session: config_manager and profile_loader required for profile mode

Root cause: _prepare_resume_context() didn't default to a bundle when no
bundle was found in saved session metadata. Old profile-based sessions
have no 'bundle' key, so bundle_name remained None, causing resolve_config()
to fall into 'profile mode' which requires the now-removed profile_loader.

Fix: Default to 'foundation' bundle when no bundle is found in saved
session metadata. This matches the fallback pattern already used in
run.py and tool.py.
@ramparte ramparte closed this by deleting the head repository Jan 15, 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.

1 participant