Skip to content

chore(tools): Various tool improvements#500

Merged
JeanMertz merged 3 commits intomainfrom
prr69
Apr 2, 2026
Merged

chore(tools): Various tool improvements#500
JeanMertz merged 3 commits intomainfrom
prr69

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

The fs_list_files tool previously only matched directory-level prefixes. If the prefix didn't resolve to an existing directory, the walk fell through with no results. This change adds support for partial filename prefixes, so a prefix like rfd/D now correctly matches rfd/D01-foo.md and rfd/D02-bar.md without requiring an exact directory path.

When the prefix is not an existing directory, the implementation now walks the nearest parent directory instead and filters the results to entries whose root-relative path starts with the given prefix string.

The web_fetch tool now sends a browser-like User-Agent header, avoiding bot detection blocks from certain sites. The title extraction logic was also removed, since htmd already does this.

A minor fix in the cargo_test tool skips "started" test events when counting, which previously caused the total test count to be doubled.

The `fs_list_files` tool previously only matched directory-level
prefixes. If the prefix didn't resolve to an existing directory, the
walk fell through with no results. This change adds support for partial
filename prefixes, so a prefix like `rfd/D` now correctly matches
`rfd/D01-foo.md` and `rfd/D02-bar.md` without requiring an exact
directory path.

When the prefix is not an existing directory, the implementation now
walks the nearest parent directory instead and filters the results to
entries whose root-relative path starts with the given prefix string.

The `web_fetch` tool now sends a browser-like `User-Agent` header,
avoiding bot detection blocks from certain sites. The title extraction
logic was also removed, since `htmd` already does this.

A minor fix in the `cargo_test` tool skips "started" test events when
counting, which previously caused the total test count to be doubled.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 687d0a8 into main Apr 2, 2026
12 checks passed
@JeanMertz JeanMertz deleted the prr69 branch April 2, 2026 21:07
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.

1 participant