Skip to content

agent.terminal: replace linenoise with isocline - #2422

Merged
arrufat merged 12 commits into
agentfrom
isocline
May 11, 2026
Merged

agent.terminal: replace linenoise with isocline #2422
arrufat merged 12 commits into
agentfrom
isocline

Conversation

@arrufat

@arrufat arrufat commented May 11, 2026

Copy link
Copy Markdown
Contributor

arrufat added 12 commits May 11, 2026 17:52
Replaces the linenoise library with isocline for improved REPL
functionality. Updates build scripts and moves completion state from
global variables into the Terminal struct.
- Simplify prompt handling by relying on default markers.
- Enable brace insertion in the terminal.
- Optimize `lpEnvNames` by pre-allocating capacity.
- Clean up and trim verbose comments across `Terminal.zig`.
Centralizes PandaScript keywords in Command.zig as a single source of
truth for the parser and REPL. Simplifies environment variable listing
and formatting in tools.zig.
- Cache environment variable names to improve completion performance.
- Refactor terminal styles into constants.
- Move `isAllUpper` to `string.zig` and `meta_names` to `SlashCommand.zig`.
- Align quoted string scanning logic with the slash command parser.
Adds unit tests for command keyword parsing and string casing. Also removes the unused `history_path` field from the `Terminal` struct.
@arrufat
arrufat merged commit 5ef6afb into agent May 11, 2026
41 of 43 checks passed
@arrufat
arrufat deleted the isocline branch May 11, 2026 16:35
@github-actions github-actions Bot locked and limited conversation to collaborators May 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant