mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-25 05:07:05 +00:00
The usage-info button sat under whichever block carried metadata — often a reasoning or tool card at the start of a response, sometimes several per response — inside a padded TextButton that pushed it off the prose's leading edge. Close each agent response with one action row instead, like the web MessageActions on an assistant-ui card: under the last block of each run of assistant-role blocks (bounded by user text, agent events and user-source CLI output), show copy (the run's prose joined by blank lines; reasoning and tools excluded, Codex reviews via a port of formatCodexReviewText), details (the run's first block with usage labels) and the latest activity time (same day HH:mm, same year MMM d HH:mm, otherwise with year; locale-ordered, 24-hour). Glyph artwork aligns with the text edge; copy reuses FullTextAction's clipboard-or-export logic with a transient checkmark.