-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
Bug Summary
amplifier session resume <id> fails with "No session found" when the session exists but was created in a different project/directory.
Reproduction Steps
- Create a session from home directory:
cd ~ amplifier run --bundle amplifier-dev
- Exit the session
- Change to a different directory:
cd ~/some-other-project
- Try to resume the session:
amplifier session resume c0eeab0a
- Get error:
No session found matching 'c0eeab0a'
Evidence
amplifier session listfrom home directory shows the session exists: "Building Voice-to-Text Tool" with IDc0eeab0a...- Session directory exists at:
~/.amplifier/projects/-Users-chrispark/sessions/c0eeab0a-6fb9-4841-ba86-47e2ee933e07 - But the CLI reports "No session found" when run from a different directory
Current Behavior
Returns misleading error No session found matching 'c0eeab0a' even though the session exists in another project.
Expected Behavior
When a session ID is not found in the current project, the CLI should:
- Search all projects for the session
- If found in another project, inform the user and launch it automatically
- Example message:
Session 'c0eeab0a' found in project '-Users-chrispark' (not current directory). Resuming...
Impact
Confusing UX for users who work across multiple directories. The error message implies the session does not exist, when in reality it just exists in a different project context.
Suggested Implementation
- Add a fallback search across all project directories when session ID not found in current project
- Provide clear messaging about which project the session belongs to
- Consider adding a
--globalflag tosession listto show sessions across all projects
Metadata
Metadata
Assignees
Labels
No labels