Feature(cli,core)add command history and improve tool system prompts • Add persistent command history to REPL with 500-item limit • Enhance tool system prompts with stricter execution rules • Support unclosed tool_call tags for better model compatibility46c72e1
Feature(cli)add enhanced UI components for better user experience8c9c55f
Feature(cli)enhance renderer with rich tool execution displayc363fa4
Feature(cli)improve tool call display and git workflowb9e8321
Feature(status-bar)derive context percent from session token summary - Add optional contextPercent field to TokenUsage interface - Compute contextPercent in main loop using session totals vs provider maxContextWindow - Remove redundant contextPercent state in StatusBar; read from usage object instead927d70b
Feature(ui)replace Repl with full ink UI and wire AgentBridge - Migrate src/index.ts from readline Repl to renderApp (ink); add token tracking, input history persistence, and tab completion engine - Update Renderer to run in inkMode: suppress direct terminal writes, emit all events (thinking-start/stop, stream-text, tool-start/complete, diff, usage) through AgentBridge - Overhaul app.tsx: Static scrollback, thinking spinner, live tool indicator, forwardRef AppHandle, double-Ctrl+C exit, phase machine (input → thinking → streaming → input) - Upgrade bordered-input.tsx: history navigation (↑/↓ arrows), tab completion with common-prefix fill, full-width border, drop model header - Add FilePathProvider, ModelNameProvider, SessionIdProvider to completion-providers.ts - Add ink approval flow to ApprovalGate (bridgePrompt + similarSessionKey); keep legacyPrompt for non-ink fallback; unicode-encode box-drawing chars - Harden ContextWindowManager: ÷3 char/token estimate, size-guard before summarization, try/catch fallback to simple truncation - Add new UI components: ApprovalHandler, CollapsibleSection, CommandPicker, InputHistory, OscLink, SuggestionHint, ToolResultView, ViModeInput - Add unit tests: color-support, completion-providers, input-history, osc-link, suggestion-hint, ui-configb88f1e9
Bug Fixes
Bug Fix(agent)merge native and DSML tool calls from same response6265c4c
Bug Fix(agent)use last input tokens for context window calculation - Add `lastInputTokens` to `handleMessage` return type to track exact input tokens of the final API call in a turn - Update `index.ts` to calculate `contextPercent` using `lastInputTokens` instead of the aggregate sum - Ensures the UI displays true context window fullness instead of an overinflated cumulative totala981041
Bug Fix(agent)use last request inputTokens for context window % - Replace cumulative totalInput+totalOutput with result.usage.inputTokens - Last request's inputTokens reflects actual payload sent to the API - More accurate measure of how full the context window truly is4a825a3
Bug Fix(ci)remove explicit pnpm version to avoid packageManager conflictaa461ba
Bug Fix(ci)use glob package for Node 20 compat, build before test622c1f0
Bug Fix(cli)improve REPL exit handling and prevent accidental termination228074b
Bug Fix(dsml)parameter closing tag has slash, regex was missing it5a79f9b
Bug Fix(sessions)enforce max_sessions limit after new session creation - Reduce default max_sessions from 20 to 1 - Call SessionManager.cleanup after create so disk never exceeds the limitf982837
Bug Fix(tools)improve path handling for weaker models0a04691
Bug Fix(ui)detect terminals with ink ghosting issues and fall back to plain prompt - Add hasInkGhostingIssue() detection for iTerm2 and Apple Terminal - Fall back to plain prompt when ghosting issues detected - Prevents frozen bordered boxes in scrollbackd5e483d
Bug Fix(ui)hide input box when not in input phase - Conditionally render BorderedInput only during input phase - Removes always-mounted pattern with isActive flag - Avoids rendering input UI while agent is processingba41a2f