Repository navigation
Conversation
running_app_config() replays each running 'reme start' command line, but it only caught ValueError. When the server was started with a relative config path from another directory, resolve_app_config raised FileNotFoundError and every 'reme <action>' call crashed instead of falling back to local config. Catch OSError too, like _scan_reme_procs already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
|
Thanks, Nurlan, for reporting #770, putting together a fix, and adding regression tests. I reproduced the cross-directory case with a real HTTP server on a non-default port. The CLI discovery changes in #769 are now on Since #769 covers the reported issue, I think we can close this PR. |
|
Thanks for checking it end to end. Agreed, #769 covers this, closing. |
Summary
running_app_config()replays the runningreme start ...args throughresolve_app_config, but only caughtValueError. If the server was started with a relative config path from another folder, the file can't be found from the client's folder,FileNotFoundErrorescapes, and everyreme <action>call crashes instead of falling back to local config.This catches
(OSError, ValueError)and moves on to the next candidate, the same way_scan_reme_procs()in the same file already does.Related issue
Fixes #770
Contract and data impact
Validation
pytest tests/unit/test_service_utils.py→ 27 passed. The 2 new tests fail on main withFileNotFoundErrorand pass with this change.pre-commit run --all-filespasses, or omitted checks are explained belowreme_studio/changed (not changed)I ran
pre-commit run --fileson the two changed files (black, flake8, pylint, pyroma all passed). I also ran the wholetests/unitfolder with.[dev,as]installed: 3479 passed, and the 51 failures are in files this PR doesn't touch (cc_agent_wrapper, file_graph, tokenizer, outbound_proxy and a few more), mostly because optional extras likeclaude_agent_sdkandopenai_codexaren't installed here.Checklist
Screenshots or additional notes
Two new tests: one where the only running server has a missing relative config (returns
Nonenow), and one where a later candidate is valid and still gets used.I used Claude Code and Codex to help find and fix this. I checked the change and ran the tests myself.
🤖 Generated with Claude Code