Skip to content

Release v6.8.0: /usage slash command, follow-up suggest fixes, and axon image inputs - #125

Merged
code-crusher merged 5 commits into
mainfrom
release/v6.8.0
Aug 18, 2026
Merged

code-crusher merged 5 commits into
mainfrom
release/v6.8.0

Conversation

@code-crusher

Copy link
Copy Markdown
Member

Context

Release PR for the release/v6.8.0 branch (5 commits). Adds a unified /usage slash command surfacing token usage and plan/balance details, fixes follow-up suggestion auto-approval UX, polishes the chat-row view-definitions labels, and restores image inputs to axon models. Version bumped to 6.8.0.

Implementation

  • /usage slash command: new UsageDialog component renders current task token usage (input/output, cache reads/writes, total cost, context tokens) and plan/balance details (weekly/monthly usage bars, code reviews remaining, balance, account info). Wired into ChatView with showUsageModal state; /usage intercepted in ChatTextArea (raw send and slash command paths) opens the dialog instead of sending a message. Registered in slash-commands.ts with a dashboard icon in SlashCommandMenu.tsx. CLI costCommand renamed to usageCommand (with cost/limits aliases kept for backwards compatibility) and extended to print current task token usage alongside plan details; Kilocode-provider/token/loading checks are now soft warnings scoped to the plan section. CommandContext extended with currentTask exposed from useCommandContext via currentTaskAtom. Optional token/cost/size fields added to HistoryItem in CLI messages. Unit tests cover command metadata and output rendering.
  • Follow-up suggest UX: countdown timer no longer restarts after the user cancels auto-approval and stops cleanly when the question is answered; suggestions list disappears immediately on click; copy-to-input cancels auto-approval and dismisses the countdown while keeping suggestions visible; renders nothing when answered or a suggestion is selected. FollowUpSuggest unit tests cover the new behaviour.
  • Chat-row view-definitions polish: drops the redundant file-code icon in the header (was duplicating the tool header icon) and title-cases wantsToViewDefinitions / wantsToViewDefinitionsOutsideWorkspace to "View Definitions" / "View Definitions (outside workspace)".
  • Image inputs to axon models: restores forwarding of tool_result images as a follow-up user message in convertToOpenAiMessages (was commented out so chat-attached images were replaced with placeholder text and silently dropped); forces supportsImages: true in KilocodeOpenrouterHandler.getModel() since all axon models accept image inputs; adds a regression test for tool result image forwarding.
  • Usage dialog cleanup: tidies the UsageDialog component.

Screenshots

before after

How to Test

  • Type /usage in the chat textarea (and via the slash command menu) and confirm the usage dialog opens showing current task token usage and plan/balance details; run axon usage (or axon cost/axon limits) in the CLI with an active task and confirm token usage and plan details render.
  • Trigger a follow-up question with auto-approval: cancel auto-approval and confirm the countdown does not restart; click a suggestion and confirm the menu disappears immediately; use copy-to-input and confirm the timer cancels while suggestions remain visible.
  • Invoke the view-definitions tool and confirm the chat row shows a single header icon and the title-cased "View Definitions" label.
  • Attach an image to a chat message sent to an axon model and confirm the image is forwarded to the model (not replaced with placeholder text).

matterai-app Bot and others added 5 commits August 17, 2026 20:39
Introduces a unified /usage slash command that surfaces current task
token usage and Kilocode/AxonCode plan & balance details.

Webview:
- Adds UsageDialog component that renders current task token usage
  (input/output, cache reads/writes, total cost, context tokens) and
  plan/balance details (weekly/monthly usage bars, code reviews
  remaining, balance, account info).
- Wires UsageDialog into ChatView with a new showUsageModal state and
  passes metric/state props from apiMetrics and currentTaskItem.
- Intercepts '/usage' in ChatTextArea (both raw send and slash command
  paths) so the command opens the dialog instead of being sent as a
  message.
- Registers the 'usage' slash command in slash-commands.ts with a
  dashboard icon in SlashCommandMenu.tsx, plus matching unit tests.

CLI:
- Renames costCommand to usageCommand (with cost/limits aliases kept
  for backwards compatibility) and extends it to print current task
  token usage alongside plan details. The Kilocode-provider / token /
  loading checks are now soft warnings scoped to the plan section so
  the command is useful for any provider when a task is active.
- Extends CommandContext with currentTask and exposes it from
  useCommandContext via currentTaskAtom.
- Adds optional token/cost/size fields to HistoryItem in cli messages.
- Adds unit tests covering command metadata and output rendering.

Bumps extension version 6.7.9 -> 6.8.0.
…wn on cancel

Improves the auto-approval UX for follow-up questions:

- The countdown timer no longer restarts once the user cancels
  auto-approval, and it stops cleanly when the question is answered.
- The suggestions list now disappears immediately when a suggestion
  is clicked (clicking previously only fired the callback without
  unmounting the menu).
- The 'copy to input' action cancels auto-approval and dismisses
  the countdown timer while keeping the suggestions visible so the
  user can still pick another option.
- Renders nothing when the question is answered or a suggestion has
  been selected, matching the intent that the menu is interactive
  state for the active follow-up.

Updates FollowUpSuggest unit tests to cover the new behaviour:
suggestion click removes options, isAnswered hides the menu, and
the copy button keeps options visible while cancelling the timer.
…labels

Polishes the chat-row rendering for the 'view definitions' tool:

- ChatRow.tsx: drops the redundant file-code icon in the header. The
  tool uses a header icon elsewhere, so rendering one here produced
  a duplicate icon next to the tool label.
- chat.json: title-cases wantsToViewDefinitions and
  wantsToViewDefinitionsOutsideWorkspace to 'View Definitions' /
  'View Definitions (outside workspace)' so the user-facing label
  matches the casing convention used for the other 'wantsTo' tool
  actions.
- restore forwarding of tool_result images as a follow-up user message in
  convertToOpenAiMessages; the block was commented out so chat-attached
  images were replaced with the placeholder text and silently dropped
- force supportsImages: true in KilocodeOpenrouterHandler.getModel() since
  all axon models accept image inputs, so no downstream gate can strip them
- add regression test for tool result image forwarding
@matterai-app

matterai-app Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

✅ Reviewed the changes: Release v6.8.0 adds /usage command, follow-up suggest fixes, and image input support. Two formatting bugs in cost.ts will cause test failures: missing $ prefix in both Total Cost and Balance output lines.

@code-crusher
code-crusher merged commit 0d31ab9 into main Aug 18, 2026
3 of 9 checks passed
@code-crusher
code-crusher deleted the release/v6.8.0 branch August 18, 2026 18:15
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