Skip to content

fix(ckg): Accept file paths#416

Open
Gujiassh wants to merge 1 commit into
bytedance:mainfrom
Gujiassh:fix/ckg-file-path-20260525
Open

fix(ckg): Accept file paths#416
Gujiassh wants to merge 1 commit into
bytedance:mainfrom
Gujiassh:fix/ckg-file-path-20260525

Conversation

@Gujiassh

Copy link
Copy Markdown

Summary

  • allow the CKG tool path argument to point at a file inside the target codebase
  • resolve file paths to the git repository root when available, otherwise fall back to the file's parent directory
  • clarify the path parameter description and add regression tests

Closes #354

Validation

  • uv run ruff check trae_agent/tools/ckg_tool.py tests/tools/test_ckg_tool.py
  • PYTHONPATH=. uv run --extra test --extra evaluation pytest tests/tools/test_ckg_tool.py -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ckg not working, it will be never initialized where using doubao 1.6 to search function

1 participant