Skip to content

feat(grep): add distinguishing title to grep and glob tool blocks#22

Merged
justin-carper merged 1 commit into
mainfrom
improve-grep-tool-details
Jun 16, 2026
Merged

feat(grep): add distinguishing title to grep and glob tool blocks#22
justin-carper merged 1 commit into
mainfrom
improve-grep-tool-details

Conversation

@justin-carper

Copy link
Copy Markdown
Collaborator

Summary

  • grep tool block now shows pattern (include) in path (e.g. foo (*.ts) in /src)
  • glob tool block now shows pattern in dir (e.g. **/*.ts in /src)
  • Previously both hardcoded title: "", making multiple concurrent calls visually identical in opencode's tool blocks

Changes

Both result signatures updated from (value) to (value, args) to access call args — the interface already supported this, no interface changes needed.

Test Plan

  • Updated stream-map.test.ts to assert new titles
  • All 44 tests pass

grep: pattern (glob) in path (e.g. "foo (*.ts) in /src")
glob: pattern in dir (e.g. "**/*.ts in /src")

Previously both hardcoded title:"", making multiple concurrent
calls in the same turn visually identical in opencode's tool blocks.

Passes args through the already-supported result(value, args)
signature; no interface changes needed.
@justin-carper justin-carper merged commit 488e93a into main Jun 16, 2026
6 checks passed
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