Skip to content

fix: tighten CLI streaming and tool prompt behavior#220

Open
tommy0103 wants to merge 1 commit into
bubbuild:mainfrom
tommy0103:fix/tui-and-tools
Open

fix: tighten CLI streaming and tool prompt behavior#220
tommy0103 wants to merge 1 commit into
bubbuild:mainfrom
tommy0103:fix/tui-and-tools

Conversation

@tommy0103
Copy link
Copy Markdown

Summary

  • Fix CLI streaming panel duplication/noise by finishing Rich Live streams on final events before cleanup logs run.
  • Skip empty streaming deltas so they do not trigger unnecessary rerenders.
  • Use ellipsis overflow for streamed CLI panels to keep long output bounded.
  • Render tool parameter signatures in the tool prompt so models get clearer argument guidance.
  • Resolve allowed tool names through both runtime names and model-facing aliases.
  • Keep model tool schemas unchanged while still rewriting dotted tool names for model calls.
  • Make tool-name tests independent of builtin registry import side effects.

Verification

  • env UV_CACHE_DIR=/private/tmp/uv-cache uv run ruff check --no-fix src tests
  • env UV_CACHE_DIR=/private/tmp/uv-cache uv run mypy src
  • env UV_CACHE_DIR=/private/tmp/uv-cache uv run pytest -q

- finish CLI live streams before cleanup-side effects
- avoid rerendering empty stream deltas
- keep streamed panels bounded with ellipsis overflow
- include tool parameter signatures in the rendered tool prompt
- resolve allowed tool names through runtime/model aliases
- keep model tool schemas unchanged while rewriting tool names
- make tool-name tests independent of builtin registry side effects
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