Repository navigation
fix(cli): allow disposable doctor project under configured root - #1327
Merged
Merged
Conversation
Signed-off-by: mikemikimike <[email protected]>
Signed-off-by: mikemikimike <[email protected]>
Add the tests the salvaged #1324 commits were missing: the service-level nested-under-root regression for #1323 (including directory cleanup via delete_notes), the doctor endpoint's 201 and 400 responses (dropping the pragma on its now-tested error path), and the typed client's doctor call. Also record the fix in the v0.23.1 changelog entry. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G4rbaeHJN3L7CREp5v38J9 Signed-off-by: phernandez <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10d437eeec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Salvage of #1324 by @mikemikimike (fixes #1323) — cherry-picked onto an in-repo branch so the full CI suite runs (fork PRs skip it), with their commits and authorship preserved, plus a test commit on top.
The fix (from #1324)
bm doctorfailed whenBASIC_MEMORY_PROJECT_ROOTpoints at an existing project's directory (the Docker setup in #1323): doctor tried to create its temp project inside the root and the nested-project guard rejected it. Now:POST /v2/projects/doctor→ProjectService.add_doctor_project()creates a server-nameddoctor-<hex>project under the configured root via a keyword-onlyallow_nested=Truethat no public route exposes — a user-supplieddoctor-name still hits the guard (tested).project_root,add_projectderives the directory from the sanitized name, so the doctor project always gets its own<root>/doctor-<hex>subdirectory — never the root itself.delete_notes=Trueso the doctor directory is removed along with its registration (addresses both Codex P1 findings on fix(cli): allow disposable doctor project under configured root #1324).Added on top
create_doctor_project.Verified: 107 tests green across the four affected files; ruff + ty clean.
Closes #1324.
🤖 Generated with Claude Code
https://claude.ai/code/session_01G4rbaeHJN3L7CREp5v38J9