8000 Adds support for commiting via chat command by rh-ssorce · Pull Request #24 · simo5/vimini · GitHub
[go: up one dir, main page]

Skip to content

Adds support for commiting via chat command - #24

Merged
simo5 merged 3 commits into
simo5:mainfrom
rh-ssorce:chat_commit
Dec 2, 2026
Merged

simo5 merged 3 commits into
simo5:mainfrom
rh-ssorce:chat_commit

Conversation

@rh-ssorce
@rh-ssorce rh-ssorce commented Nov 30, 2026 •
Copy link
Copy Markdown
Contributor

Fixes #23

Also fixes an issue if tests hangs by adding a timeout option

@rh-ssorce rh-ssorce changed the title Chat commit Adds support for commiting via chat command Nov 30, 2026
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>
@simo5
simo5 merged commit 994a3e8 into simo5:main Dec 2, 2026
1 check passed
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.

The ViminiCommit should get context from the ViminiChat

2 participants

0