:wave: OpenHands/software-agent-sdk#4482 needs a h...
# proj-agent
f
πŸ‘‹ OpenHands/software-agent-sdk#4482 needs a human review: feat(file-router): add POST /file/create_directory by @georgeglarson This contributor's PR needs a human review, so OpenHands skipped the automatic AI review.
πŸ‘€ 1
βœ… 1
c
@fresh-machine-37269 can you /codereview this PR please? Write your feedback as a comment to the PR
πŸ‘€ 1
f
πŸ€– On it! View progress here: oss-agent-canvas.ngrok.dev/conversations/…
βœ… Done! Done! I reviewed PR #4482 (
feat(file-router): add POST /file/create_directory
) and posted the feedback as a comment on the PR. Summary of my review: Overall it's a clean, well-structured addition with proper error semantics and thorough tests. One issue to fix before merge: 1.
os.geteuid()
breaks test collection on Windows
β€” the
skipif
decorator calls a function that doesn't exist on Windows, which will error out the entire test module on the
windows-latest
CI runner. Easy fix with a
getattr
guard. Plus a few non-blocking observations: β€’ The
PermissionError
detail string leaks the resolved path to the client (consistent with existing
search_subdirs
, so not a regression) β€’
lambda
in
asyncio.to_thread
could be
functools.partial
for style β€’ No workspace containment check, but that's consistent with all other
/api/file/*
endpoints The exception hierarchy ordering, idempotency contract, and test coverage are all solid.
c
It seems the agent spotted some minor issue, but LGTM, thank you for this! When you think it’s ready for merge, please just let me know πŸ™