refactor: cleanup unused imports, add conversation summary tracking

- Remove unused MarkdownRenderer import and field from ClaudeCodeComponent
- Add onFirstUserInput callback for conversation summary tracking
- Wire conversation summary in JinkReplSession

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
abel533
2026-04-04 14:57:05 +08:00
co-authored by Copilot
parent 601a1c9ea9
commit 199ad6259b
2 changed files with 16 additions and 6 deletions
@@ -87,6 +87,11 @@ public class JinkReplSession {
setupAgentCallbacks();
setupToolContextCallbacks();
// 注册首次用户输入回调(用于对话摘要)
component.setOnFirstUserInput(text -> {
conversationSummary = text.length() > 40 ? text.substring(0, 40) : text;
});
// 启动 jink 渲染
inkApp = Ink.render(component);