fix(server): reject requests for missing project directories - #43844
Open
shijiatongxue wants to merge 2 commits into
Open
fix(server): reject requests for missing project directories#43844shijiatongxue wants to merge 2 commits into
shijiatongxue wants to merge 2 commits into
Conversation
shijiatongxue
force-pushed
the
fix/reject-missing-project-directory
branch
3 times, most recently
from
August 21, 2026 09:20
1e14ba0 to
e1f6e9c
Compare
shijiatongxue
marked this pull request as ready for review
August 21, 2026 09:27
|
shijiatongxue
force-pushed
the
fix/reject-missing-project-directory
branch
from
August 21, 2026 22:20
e1f6e9c to
85c0c0c
Compare
Author
|
Following up on the review above. This response is also AI-generated. I kept the Implemented in commit |
shijiatongxue
force-pushed
the
fix/reject-missing-project-directory
branch
from
August 22, 2026 05:49
3b364d4 to
1d80c83
Compare
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.
Issue for this PR
Fixes #39471
Type of change
What does this PR do?
When a saved project directory has been deleted or moved, the instance HTTP middleware now checks the decoded project directory before loading the instance context.
If the directory is missing, the server returns the declared 404
NotFoundErrorJSON response instead of allowing the request to complete silently without an assistant response. The regression test coversGET /pathandPOST /session/:sessionID/prompt_async.How did you verify your code works?
bun test test/server/httpapi-instance.test.ts -t "rejects instance requests for missing project directories"— 1 pass, 0 fail.bun run typecheck— 30 successful tasks.httpapi-instance.test.tsfile had one unrelated 5-second timeout inemits a sync fence header for fixed-workspace mutations; the new regression test passed.git diff --checkpassed.Screenshots
Checklist