Skip to content

Conversation

@evalstate
Copy link
Owner

  • Add timing extraction helper function to get duration_ms from FAST_AGENT_TIMING channel
  • Update /history command to display turn time between Role and Chars columns
  • Display "-" when timing data is not available (e.g., for tool results)
  • Modernize type hints to use Python 3.10+ syntax (X | None instead of Optional[X])
  • Update imports to use collections.abc directly for Mapping and Sequence

The timing data is already captured consistently in both generate() and structured() methods in fastagent_llm.py, so this change only adds the display functionality.

- Add timing extraction helper function to get duration_ms from FAST_AGENT_TIMING channel
- Update /history command to display turn time between Role and Chars columns
- Display "-" when timing data is not available (e.g., for tool results)
- Modernize type hints to use Python 3.10+ syntax (X | None instead of Optional[X])
- Update imports to use collections.abc directly for Mapping and Sequence

The timing data is already captured consistently in both generate() and structured()
methods in fastagent_llm.py, so this change only adds the display functionality.
- >= 80 cols: Show all columns (Role, Time, Chars, Summary)
- >= 60 cols: Show Role, Time, Chars, Summary
- >= 50 cols: Show Role, Chars, Summary (drop Time)
- < 50 cols: Show Role, Summary (drop Time and Chars)

This ensures the Summary column always has adequate space on narrower
terminals by progressively hiding less critical columns.
@evalstate evalstate merged commit 6cf1128 into main Nov 8, 2025
6 checks passed
@evalstate evalstate deleted the claude/add-fast-agent-timing-011CUvCTGjTcbGdj3ZzvrQ21 branch November 8, 2025 11:42
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.

3 participants