Skip to content

Conversation

@nanshaws
Copy link

The input UI interface has been changed, and the send button has been modified to prevent the copied code from the web from accidentally triggering the send button.
image

The input UI interface has been changed, and the send button has been modified to prevent the copied code from the web from accidentally triggering the send button.
@CLAassistant
Copy link

CLAassistant commented Jan 11, 2026

CLA assistant check
All committers have signed the CLA.

Seamless Confirmation: When responding to Aider's prompts (e.g., "Open URL for more info?") with a single-character response like 'y', pressing Enter now confirms the action immediately.

Command Efficiency: Native Aider commands, such as /exit or /add, now behave like a standard terminal interface, executing instantly upon pressing Enter.

Input Security: For standard chat messages, Enter serves as a safe "newline" to prevent the accidental transmission of incomplete prompts. Users must use Ctrl+G (or Alt+Enter) to explicitly send the message to the AI.
To maximize efficiency while maintaining safety, I have implemented a dual-path submission logic:

Primary Path (Implicit): Users can now terminate messages with a semicolon (;) and press Enter. The UI will automatically strip the semicolon and submit the prompt.

Secondary Path (Explicit): Retained Ctrl+G and added Alt+Enter as "Force Send" keys. These bypass all content checks and immediately push the buffer to the AI.

Rationale: This hybrid approach provides the speed of a terminal (via semicolon/Enter) without losing the dedicated control offered by a physical hotkey.
@nanshaws
Copy link
Author

To maximize efficiency while maintaining safety, I have implemented a dual-path submission logic:

Primary Path (Implicit): Users can now terminate messages with a semicolon (;) and press Enter. The UI will automatically strip the semicolon and submit the prompt.

Secondary Path (Explicit): Retained Ctrl+G and added Alt+Enter as "Force Send" keys. These bypass all content checks and immediately push the buffer to the AI.

Rationale: This hybrid approach provides the speed of a terminal (via semicolon/Enter) without losing the dedicated control offered by a physical hotkey.
image

Issue: > Terminals lacking "Bracketed Paste" support simulate an Enter key event for every newline character during a paste operation. This causes premature submission of partial code snippets if an intermediate line ends with a semicolon.
This update enhances the io.py input logic by introducing a "Structural Balance" check for the Enter key.

Delimiter Matching: The input buffer now tracks the balance of curly braces {}, square brackets [], and parentheses ().

Safe Statement Termination: The semicolon (;) only triggers a submission when all delimiters are balanced, preventing premature execution during multi-line code pasting.

Consistent Command UX: Native Aider commands (/) and confirmation prompts (y/n) continue to execute instantly, maintaining a high-velocity workflow.

Manual Overrides: Ctrl+G and Alt+Enter are preserved as explicit submission keys to bypass structural checks when needed.
…ures' for tree-sitter >= 0.22.0

I encountered an AttributeError in repomap.py when running Aider with the latest tree-sitter (v0.25.2). This is due to the breaking changes introduced in tree-sitter v0.22.0 where the .captures() method was moved from the Query object to QueryCursor.

I have implemented a backward-compatible fix in repomap.py that checks for the existence of these attributes before calling them. This ensures Aider works with both older and newer versions of the tree-sitter library.
@nanshaws
Copy link
Author

fix: AttributeError in repomap.py due to tree-sitter 0.22.0+ API changes
Description:

I encountered an AttributeError in repomap.py when running Aider with tree-sitter v0.25.2. This is caused by breaking changes introduced in tree-sitter v0.22.0, where the .captures() method was moved from the Query object to QueryCursor.

I have implemented a backward-compatible fix in repomap.py that uses hasattr to check for the existence of these attributes before calling them. This ensures Aider continues to work seamlessly with both legacy (pre-0.22.0) and modern versions of the tree-sitter library.
image

update
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.

2 participants