Skip to content

Decision: should the editor's Problems list offer a coding agent, when an agent reads the saved version and the list checks the draft? #4972

Open

Description

@yannickmonney

Summary

A coding agent can now be reached from the editor ("Edit with your coding agent", #4959), from a failed run ("Fix with your coding agent", #4965) and from the Create menu (#4966). The editor's Problems list, which shows what the engine finds in the document on screen, has no entry. The first design for the agent entry points had a per-problem action carrying the problem's code and JSON pointer; it was left out because of the points below. This issue records the evidence and the options. It states no preference.

What the repository says (main at 8a0732529c)

  • What Problems checks. services/platform/app/features/automations/components/automation-editor.tsx:708-723: "What the engine finds in the document on screen", through useAutomationValidation({ document: rawDocument, isDraft: draft !== null, … }). The draft is component state (:457), so the list reads the draft when there is one and the saved document otherwise.
  • Where it is shown. The dock under the canvas (automation-dock.tsx:69-80, its filter is the panel's actions), a sheet below lg (automation-problems.tsx:130) and per node in the inspector (node-inspector.tsx:1278).
  • What a row is. In IssueList each row is a <li> holding a roving <button> that takes the reader to the problem, then an IssueDetail (packages/ui/src/components/feedback/issue-list.tsx:310-319, :497-531). IssueItem (:30-56) has no field for actions. IssueDetail has an actions slot (:126) that IssueList does not fill.
  • What an agent reads. get_automation reads a saved version: the latest, a number or "deployed" (services/platform/lib/mcp/args.ts:468-472). validate_automation takes a document the agent passes in (:297-298). test_automation takes a draft document or a saved name (:320-329). No tool reads the editor's unsaved draft, which lives in the browser.
  • What the dialogs can say. PromptContext is general | create | edit | run (services/platform/app/features/coding-agent/lib/prompts.ts:7-11); there is no problem context. The edit prompt already tells the agent to check its work with validate_automation.

What was not examined

  • How often the problems people see are in a saved version and how often only in an unsaved draft.
  • How people use the Problems list while a coding agent is open.
  • Whether a prompt could carry the draft's document, and the size it would reach.

Constraints any change would meet

  • A problem that exists only in an unsaved draft cannot be seen by an agent that works from the saved version. A prompt would have to carry it (code, location, title), or the person would save first.
  • A row is already a button. A second control per row needs an accessibility design for a roving list, and a new field or slot in @tale/ui (stories, the design-system guide and tests).
  • For problems of a saved version, the editor's own button already reaches an agent whose first step validates that version.

Options (no preference stated)

  1. No entry. The editor's button and the agent's own validate_automation cover it.
  2. One action in the dock's header, beside the filter, that opens the edit dialog with a prompt listing the current problems (code, location, title).
  3. An action per row. This needs an actions slot on IssueItem or IssueList in @tale/ui.
  4. Offer it only when the draft equals the saved version, so the agent sees what the person sees; otherwise say "save first".
  5. A prompt that carries the draft's document.

Questions

  • Is a Problems entry wanted at all, given the edit button?
  • For a draft with problems: save first, carry the problems in the prompt, or neither?
  • Who should see it: the people who see the editor's button today (Owner, Admin, Developer)?

Related

#4959, #4965, #4966, #4958

Activity

  1. added
    priority: low
    needs discussion
    improvement
    service: platform
    on Oct 13, 2026
  2. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    The Problems list gets no coding-agent entry. The editor's Edit with your coding agent button stays the one way from the editor to an agent. Its prompt now asks the agent to check the latest version first and report its problems.

    Rule: The Problems dock, its sheet below lg, and the inspector's per-node problems offer no agent action:

    • no action per row
    • no action in the header
    • no "save first" gate
    • no prompt that carries the draft

    The edit prompt (codingAgent.prompt.edit, en/de/fr) becomes:

    1. Open the latest version with get_automation.
    2. Check it with validate_automation and report every error and warning with its code and location.
    3. Make the change you want.
    4. Check again, test, save with save_automation, and ask before a deploy.

    The prompt always works from the latest version, because an agent saves on top of it. @tale/ui IssueItem/IssueList get no actions slot.

    Answers

    • Is a Problems entry wanted at all? No. With the new prompt, the edit button covers every problem an agent can see: those of the latest saved version. On an older version shown with ?version=n, the agent's check reports the latest version, which is intended.
    • A draft with problems: save first, carry the problems in the prompt, or neither? Neither.
      • "Save first" is refused for a draft with an error (AUTO-R23).
      • Carrying the problems or the document gives the agent something it cannot read or base a save on. Its save would also make the person's draft stale, so their next save is refused (AUTO-R3).
    • Who sees it? There is no new control. The existing button stays with Owner, Admin and Developer.

    Rationale

    Implementation

    1. Edit prompt checks first; record the rule (S, base main):
      • Update prompt.edit in en/de/fr, keeping exactly one bracketed place.
      • Add a prompts.test.ts case. On the built prompt in each locale, it asserts that validate_automation comes before the bracketed place and that no { is left.
      • Update the quoted prompt text in the dialog tests.
      • Add the rule, the latest-version limit and the AUTO-R3/R23 reasons to the CodingAgentButton doc comment.
      • Update manual box AUTO-F87 and add a pins.md row keyed by AUTO-F87.
      • Gate: bun run check is green.

    Cross-issue amendments (decisions taken together with #4976, #4975):

  3. added
    agent-ready
    and removed
    needs discussion
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions