Skip to content

feat(agent): show compact progress and create workspace directories - #280

Merged
fcoury merged 4 commits into
mainfrom
fcoury/agent-progress
Aug 18, 2026
Merged

fcoury merged 4 commits into
mainfrom
fcoury/agent-progress

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

Summary

Long Agent turns could appear stalled, and recoverable tool errors could overwhelm the answer once work finished. Creating a sample such as go/main.go also failed when its parent directory did not exist.

  • Stream assistant messages on a stable flush deadline and preserve separate messages without repeated role headings or duplicated text.
  • Show one compact activity disclosure per turn, with five recent actions and an on-demand inspector for bounded paths and diagnostics. Keep recoverable issues above the answer, terminal errors visible, and Worked for … below it.
  • Reserve a blank row above the spinner, preserve loose Markdown-list spacing, and make New start a fresh session in the existing pane.
  • Add the workspace-confined create_directory tool and create missing parents during revision-checked file writes. Existing directories are accepted without changing the active buffer.

Directory creation uses the existing pinned, no-follow filesystem boundary on Unix. Unsupported platforms fail closed when new directories are needed. Shell access remains disabled; directory deletion and renaming are not added. Activity details are retained for the current conversation view, while restored conversations may have only saved summaries.

How to Test

  1. Build Red, open a scratch workspace, open the Agent pane, and click New. Expect a fresh session with focus in the pane composer and no floating ask popup.
  2. Ask the agent to inspect a few project files and create a runnable Go sample at go/main.go, starting without a go/ directory. Expect streamed progress, a compact activity row, a blank row above the spinner, and a saved file at the requested path.
  3. Expand the activity row by clicking it or using [l / ]l and Enter. Open View all details. Expect bounded inline entries and complete retained diagnostics in the inspector. After completion, the summary stays above the answer and the elapsed-time footer stays below it.
  4. Ask it to read a nonexistent optional file and then continue with a useful answer. Expect an issue count without the full recoverable error being appended to the answer. Verify that an explicit request to create an already-existing directory succeeds without switching buffers.
  5. Run the focused regressions agent_directories_reject_unsafe_paths_before_creating_parents and agent_file_writes_create_parents_only_after_revision_validation. They cover protected paths, symlinks, conflicts, nested writes, and stale revisions.

Validated locally: Agent runtime, panel, Markdown, Codex, editor-tool, and secure workspace-edit tests; strict Clippy; binary build; and red --self-check. The pane flow and nested-file creation were also manually confirmed. End-to-end tests were intentionally skipped for this iteration.

Surface bounded tool activity with expandable details, preserve separate streamed messages, and keep completed activity above the final answer. Retain cleared conversation context and render loose Markdown lists with consistent spacing.
@fcoury
fcoury merged commit ef9fc74 into main Aug 18, 2026
12 checks passed
@fcoury
fcoury deleted the fcoury/agent-progress branch August 18, 2026 03:49
@fcoury
fcoury restored the fcoury/agent-progress branch August 18, 2026 16:27
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.

2 participants