Skip to content

feat(commands): add /commit built-in command + UI context window fix#86

Merged
code-crusher merged 4 commits into
mainfrom
release/v6.2.5
May 27, 2026
Merged

feat(commands): add /commit built-in command + UI context window fix#86
code-crusher merged 4 commits into
mainfrom
release/v6.2.5

Conversation

@code-crusher

Copy link
Copy Markdown
Member

Changes

feat(commands): add commit built-in command for generating commit messages

Adds a new /commit slash command that guides the AI to check pending git changes, group them logically, and generate conventional commit messages. The command can split changes into multiple commits when appropriate.

  • Define commit command in BUILT_IN_COMMANDS with task instructions
  • Add commitCommandResponse prompt template in commands.ts
  • Wire commit slash command to prompt in kilo.ts
  • Register commit in webview slash command list
  • Update tests to cover the new commit command (now 2 built-in commands)

fix(ui): update default context window size to 262000 tokens

Updates the fallback maxContext value in ContextUsageIndicator from 200000 to 262000 to match the updated model context window limit.

code-crusher and others added 4 commits May 26, 2026 12:40
- Bump context_length from 200K to 262K across all model definitions
- Increase max_output_length for Axon Code 2.5 Mini from 32768 to 64000
- Rewrite summary/condense prompts for higher information density
- Update file_write tool descriptions with newline handling guidance
- Remove client-side JSON escape unescaping (moved to server-side)
- Tweak UpdateTodoListBlock UI: bold in_progress items, remove line-through from completed
…sages

Adds a new /commit slash command that guides the AI to check pending git
changes, group them logically, and generate conventional commit messages.
The command can split changes into multiple commits when appropriate.

- Define commit command in BUILT_IN_COMMANDS with task instructions
- Add commitCommandResponse prompt template in commands.ts
- Wire commit slash command to prompt in kilo.ts
- Register commit in webview slash command list
- Update tests to cover the new commit command (now 2 built-in commands)
Updates the fallback maxContext value in ContextUsageIndicator from
200000 to 262000 to match the updated model context window limit.
This ensures the context usage bar displays correctly when no usage
data is available from the provider.

@matterai-app matterai-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 PR Review is completed: Added /commit command and updated context window defaults. Found a UI styling bug in todo list rendering and a missing confirmation safeguard in the built-in commit command prompt.

Skipped files
  • pnpm-lock.yaml: Skipped file pattern
⬇️ Low Priority Suggestions (1)
src/services/command/built-in-commands.ts (1 suggestion)

Location: src/services/command/built-in-commands.ts (Lines 31-32)

🟠 Logic Error

Issue: The built-in commit command prompt is missing the user-confirmation safeguard that exists in the slash-command version (commitCommandResponse in commands.ts). Without this instruction, the AI may commit changes directly without presenting them to the user for review first.

Fix: Append the confirmation requirement before the closing </task> tag.

Impact: Ensures the built-in commit path behaves consistently with the slash-command path and prevents unintended auto-commits.

-    git commit --author="matterai-app[bot] <matterai-app[bot]@users.noreply.github.com>"
-  </task>`,
+  	  git commit --author="matterai-app[bot] <matterai-app[bot]@users.noreply.github.com>"
+  
+  Before committing, present the commit messages to the user for review and ask them to confirm before executing.
+  </task>`,

textDecoration:
todo.status === "completed" ? "line-through" : "none",
opacity: todo.status === "completed" ? 0.7 : 1,
textDecoration: todo.status === "completed" ? "none" : "none",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Code Quality

Issue: The textDecoration style uses a ternary with identical branches ("none" : "none"), making it a no-op. This appears to be a copy-paste error — completed todo items should visually distinguish themselves with a line-through decoration, consistent with TodoListDisplay.tsx.

Fix: Change the completed branch to "line-through".

Impact: Completed tasks will render with the intended strikethrough style, matching the design pattern used elsewhere.

Suggested change
textDecoration: todo.status === "completed" ? "none" : "none",
textDecoration: todo.status === "completed" ? "line-through" : "none",

@code-crusher code-crusher merged commit 93c4f6b into main May 27, 2026
4 of 13 checks passed
@code-crusher code-crusher deleted the release/v6.2.5 branch May 27, 2026 06:37
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