Skip to content

chatd: saved workflow polish from the #338 review #352

Closed

Description

@ibetitsmike

Coder Agents acted on behalf of @ibetitsmike.

Small follow-ups from the Opus review of #338 (saved workflows, issue #322). None blocks; all are P3.

  • coderd/x/chatd/fork_saved_workflows.go listWorkflowsDescription: says "organization workflows shared with you". Org admins and auditors see every org workflow. Reword to "that you can read".
  • coderd/x/chatd/fork_saved_workflows.go validateSavedWorkflowArgs: the comment says no number is rounded before the check, but the schema check runs on the re-marshaled args. Fix the comment. The out-of-range error from fork_workflow_report.go says "the report contains"; say "args" in the args path.
  • coderd/x/chatd/fork_workflow.go: the script field description says "Send this or script_path." and the empty-input error says "script is required". Mention name.
  • coderd/x/chatd/ARCHITECTURE.md: phase names now also reject Unicode format characters (Cf), not only control characters.
  • Saved workflow descriptions go into the model context but are not checked for Cf, bidi or zero-width characters, while phase names are. Apply the same check.
  • Tests: edit or delete a saved workflow, then resume the run and show the journaled script wins; an org admin subject sees a private org workflow in list_workflows; consider a size cap on args for runs (inline and by name).

Activity

  1. added
    enhancement
    followup
    on Nov 15, 2026
  2. ibetitsmike commented on Nov 17, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    Scheduled 2026-11-17 14:30Z. A maintainer workstream takes the checklist on branch mike/issue-352-saved-workflow-polish. The args size cap will be 64 KiB, the same as the script cap, for inline and named runs. chatd only; no site change.

  3. ibetitsmike commented on Nov 17, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    Done in #383, merged at 21:10Z as f05d9a1. Gates and test evidence are in #383 (comment). The deploy to the daily server is pending.

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

    enhancementfollowup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions