Skip to content

Coding agent UI updates v2#2206

Closed
russell-rozenbaum wants to merge 13 commits into
devfrom
coding-agent-ui-updates-v2
Closed

Coding agent UI updates v2#2206
russell-rozenbaum wants to merge 13 commits into
devfrom
coding-agent-ui-updates-v2

Conversation

@russell-rozenbaum
Copy link
Copy Markdown
Contributor

@russell-rozenbaum russell-rozenbaum commented Apr 3, 2026

  • System prompt and developer notes use full-screen-doc (left-aligned, readable)

  • Hide edits summary when there are no edit tools in a turn

  • Wire Agent Tools to tools-view-* CSS (flex row, hover, toggle states)

  • Scroll chat to bottom on updates only when already pinned to bottom (still buggy)

- Agent Context panel shows live program via CompositionView.segment_for_agent_context and ToolResultView; strip duplicate fenced block from text.
- Thread CodeWithStatics from scratchpad through ChatView into context_view.
- Chat bottom bar: last-response prompt_tokens vs OpenRouter context_length, progress bar, hover fraction; parse context_length on models.
- Theme vars --context-meter-track/--context-meter-fill; AgentGlobals.context_length_for_active.
- Add .cursor architecture notes and PR merge checklist.

Made-with: Cursor
- Add System(CompactionSummary) and append summary after assistant tail
- OpenRouter agent calls use messages_for_openrouter (prompt+dev+suffix from latest summary+context)
- Separate summarization request; block sends while compacting; UI banner and notice chunk
- Clear compaction state on API errors; persist strips in-flight compaction

Made-with: Cursor
- Skip Indentation.shallow_complete_segment for live agent context (it broke Aba tile invariants)
- Render Fold projectors as visible ⋱ in Code.view read-only path
- Rename sidebar heading to Program View; style fold in agent context

Made-with: Cursor
- Slash menu when typing / (filter, arrows, Enter); /compact forces compaction
- ChatSystem slash_menu state; RequestForcedCompaction; method label for slash
- Styles for slash popup; PR note on read-only fold ⋱ when shape_map is empty

Made-with: Cursor
Add Cursor IDE directory to .gitignore; remove tracked files from index
(local copies retained).

Made-with: Cursor
…ontent parsing

- Add CompactionPrompt.re with long summarizer preamble; wire Agent compaction API
- Append live context snapshot (agentEditorView, errors, tests, workbench) like main agent
- Parse array-shaped assistant content and optional reasoning in OpenRouter.handle_chat
- Move compacting banner to bottom of chat log; refresh PR merge notes

Made-with: Cursor
…y dune fmt

- Send program snapshot as user message for compaction; broaden OpenRouter
  assistant content parsing; clearer errors for tool-only compaction replies
- Edits Performed panel starts collapsed; include formatter output (dune fmt,
  @src/fmt) across touched sources and PR notes

Made-with: Cursor
Register the "Agent UX" group in haz3ltest: slash commands and slash menu
derivation, compaction dialogue slicing, CompactionPrompt assembly, OpenRouter
handle_chat shapes, and context meter limit math. Document in PR-merge-to-dev.

Made-with: Cursor
Remove the only tracked file under .cursor/ so the directory stays local-only.
Consolidate .cursor/ in .gitignore with a single Cursor IDE entry.

Made-with: Cursor
… docs

- Scroll chat to bottom on updates only when already pinned to bottom
- System prompt and developer notes use full-screen-doc (left-aligned, readable)
- Hide edits summary when there are no edit tools in a turn
- Wire Agent Tools to tools-view-* CSS (flex row, hover, toggle states)

Made-with: Cursor
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 21.96078% with 199 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.03%. Comparing base (8a61bbf) to head (e54eff1).
⚠️ Report is 71 commits behind head on dev.

Files with missing lines Patch % Lines
src/web/view/AgentCore/Agent.re 16.47% 147 Missing ⚠️
src/util/OpenRouter.re 47.50% 21 Missing ⚠️
src/haz3lcore/CompositionCore/CompositionView.re 0.00% 11 Missing ⚠️
src/web/view/AgentCore/AgentGlobals.re 21.42% 11 Missing ⚠️
src/web/app/editors/code/Code.re 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2206      +/-   ##
==========================================
- Coverage   50.23%   49.03%   -1.21%     
==========================================
  Files         251      254       +3     
  Lines       28927    29901     +974     
==========================================
+ Hits        14532    14662     +130     
- Misses      14395    15239     +844     
Files with missing lines Coverage Δ
...CompositionCore/prompt_factory/CompactionPrompt.re 100.00% <100.00%> (ø)
src/web/app/editors/code/Code.re 3.79% <0.00%> (-0.32%) ⬇️
src/haz3lcore/CompositionCore/CompositionView.re 3.09% <0.00%> (+0.03%) ⬆️
src/web/view/AgentCore/AgentGlobals.re 9.52% <21.42%> (+5.95%) ⬆️
src/util/OpenRouter.re 23.17% <47.50%> (+23.17%) ⬆️
src/web/view/AgentCore/Agent.re 9.09% <16.47%> (ø)

... and 21 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@russell-rozenbaum
Copy link
Copy Markdown
Contributor Author

Closing in favor of #2210

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