microsoft / microsoft/amplifier
Session resume fails when run from different directory than where session was created
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 3h 28m
- Merged PRs (30d)
- 13
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the amplifier session resume CLI entry point and trace how it searches the current project for session IDs. Reproduce the directory change described in the issue, then inspect the project and session discovery logic. Done means a session created elsewhere is found, the owning project is reported, and resume proceeds without the misleading error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100