fix: improve command handling and add paste support

- Add ToolRegistry to ClaudeCodeComponent for proper command context
- Use ByteArrayOutputStream to capture command output in TUI mode
- Add onPaste() override for efficient multi-line paste handling
- Fix constructor to accept toolRegistry parameter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
abel533
2026-04-04 15:00:29 +08:00
co-authored by Copilot
parent 199ad6259b
commit 45283c87e4
2 changed files with 32 additions and 3 deletions
@@ -74,6 +74,7 @@ public class JinkReplSession {
component = new ClaudeCodeComponent(
agentLoop,
commandRegistry,
toolRegistry,
providerInfo.provider(),
providerInfo.model(),
providerInfo.baseUrl(),