Repository navigation
Adds support for commiting via chat command - #24
Merged
Merged
Conversation
rh-ssorce
force-pushed
the
chat_commit
branch
from
December 1, 2026 17:20
efbcffd to
a69b774
Compare
Prevent hanging test commands from blocking chat sessions indefinitely by enforcing a configurable timeout on test_code tool execution. - Add a test-timeout integer project configuration option (default 60s, clamped to 1-3600s) with schema validation and ViminiConfig UI editing. - Stream tool subprocess output via a reader thread and queue with deadline enforcement, terminating the process tree with SIGTERM and a SIGKILL fallback on timeout while preserving partial output. - Surface the configured timeout in test_code tool notices and prompts, update README.md, and add unit tests for config handling and termination. Assisted-by: Gemini 4 Neon Signed-off-by: Simo Sorce <simo@redhat.com>
Allow users to initiate git commits directly from chat buffers using the c keybinding or /commit command (supporting -a amend, -r regenerate, and -n no-trailer flags with optional instructions), and allow the agent to propose commits via a new propose_commit tool governed by the per-project commit-permission setting (User-Only, Ask, Allow, or Deny). Refactor commit preparation, rollback, and buffer creation in commit.py so chat-driven commits reuse the interactive gitcommit review buffer, file exclusion toggling, pre-commit staging reversion on refusal or error, and refusal feedback loop with the agent. Add sanitization helpers in vimini.common.sanitize to reject or flatten newlines and control characters in model-provided commit subjects and tool strings before rendering them in chat buffers, popups, or commit buffers. Also handle bytes values from Vim buffer variables when serializing channel requests, update README documentation, and add unit and git integration tests. Assisted-by: Gemini 4 Neon Signed-off-by: Simo Sorce <simo@redhat.com>
Align the documented minimum Python version in README.md with the project's Python 3.11+ requirement in AGENTS.md and CONTRIBUTING.md. Note: This was a test of the agent ability to auto-propose a commit. Assisted-by: Gemini 3.8 Flash Signed-off-by: Simo Sorce <simo@redhat.com>
rh-ssorce
force-pushed
the
chat_commit
branch
from
December 2, 2026 03:07
a69b774 to
dcb7b82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #23
Also fixes an issue if tests hangs by adding a timeout option