Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

## [Unreleased]

### Added

- **`--watch <session>` 入口**:Bash、Go、Rust、C 四运行时主程序新增 `--watch` 参数,实时跟踪某个 session 的 `events.jsonl`——先渲染最后 10 行已有事件作为上下文,再 follow 新增事件直到 Ctrl+C(Bash 用 `tail -f` 逐行渲染,Go/Rust/C 用 500ms 轮询)。渲染复用与 `--resume` replay 相同的事件→display 映射;不需要 API key、不创建 session。参数支持三种形式:events.jsonl 文件路径、session 目录、session_id(在 `$BASH_AGENT_HOME/.bash-agent/projects` 下递归查找)。`--output-format stream-json` 下直接透传原始事件行。

### Removed

- **`scripts/watch.sh`**:单 session 场景由四运行时内置的 `--watch` 入口替代;多 session tmux 分屏场景一并移除。

---

## [4.3.3] - 2026-08-11
Expand Down
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Pre-built binaries (C / Go / Rust) are available on [Releases](https://github.co
| `--continue` | continue the latest session | - |
| `--fork` | fork a new session from source (with `--session` or `--continue`) | - |
| `--list-sessions` | list sessions for the current project | - |
| `--watch SESSION` | Watch a session's events.jsonl in real time (session_id / dir / events.jsonl path) | - |
| `-i` | interactive mode | - |
| `--output-format FMT` | output format: `human` or `stream-json` | `human` |
| `-v` | verbose logging | - |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ cd rust && cargo build --release && cp target/release/rustagent ~/.local/bin/rus
| `--continue` | 继续最近 session | - |
| `--fork` | 从源 session 派生新 session(配合 `--session` 或 `--continue`) | - |
| `--list-sessions` | 列出当前项目 session | - |
| `--watch SESSION` | 实时跟踪 session 的 events.jsonl(session_id / 目录 / events.jsonl 路径) | - |
| `-i` | 交互模式 | - |
| `--output-format FMT` | 输出格式:`human` 或 `stream-json` | `human` |
| `-v` | 详细日志 | - |
Expand Down
Loading
Loading