Skip to content

Zhengruhao integrate upstream after diff viewer - #14

Merged
yezi6690-cell merged 8 commits into
Superagentsys:mainfrom
yezi6690-cell:zhengruhao-integrate-upstream-after-diff-viewer
Jul 9, 2026
Merged

Zhengruhao integrate upstream after diff viewer#14
yezi6690-cell merged 8 commits into
Superagentsys:mainfrom
yezi6690-cell:zhengruhao-integrate-upstream-after-diff-viewer

Conversation

@yezi6690-cell

Copy link
Copy Markdown
Collaborator

No description provided.

yezi6690-cell and others added 8 commits June 28, 2026 13:59
Add a live execution timeline that shows what the Agent is doing in
real-time, similar to Codex / Claude Code / Cursor Agent.

Backend (Rust):
- Extend AgentEvent with ToolExecution(ToolExecutionEvent) variant
- New ToolExecutionEvent enum: Started, Completed, FileChanged with
  success/duration_ms/result_summary/diff_stats fields
- AgentDispatcher.run_streaming now emits rich tool_started/completed
  events with Chinese summaries (正在读取文件、正在执行命令等)
- AgentDispatcher.run_with_events() collects events for non-stream callers
- Agent.process_message_with_events() exposes the event stream
- Gateway process_inbound uses run_with_events and converts ToolExecutionEvent
  to RunEvent (frontend-compatible) via ExecutionStep.run_events field
- build_tool_summary() for human-readable tool descriptions
- truncate_for_display() for UI-safe output (300 chars)
- extract_diff_stats() parses git diff --numstat output
- TUI updated to display rich events

Frontend (React/TypeScript):
- New AgentRunTimeline component: collapsible panel with event list
- AgentRunEventCard: shows step number, status icon, summary, diff stats
- types.ts: RunEvent union (toolStarted/toolCompleted/fileChanged)
- ExecutionStep.run_events wired into ExecutionSteps component
- Preserves existing ExecutionSteps style; AgentRunTimeline is inline
  inside the existing step panel, collapsed by default

Co-authored-by: Cursor <cursoragent@cursor.com>
@yezi6690-cell
yezi6690-cell merged commit e74e959 into Superagentsys:main Jul 9, 2026
7 checks passed
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.

1 participant