Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
docs(cli): MUL-10029 correct issue description base-revision and edit-description wording (#11382)
Bohan Jiang4d833a7e6bab
diff --git a/CLI_AND_DAEMON.md b/CLI_AND_DAEMON.mdindex 3d91a501f8..035d01eaa2 100644--- a/CLI_AND_DAEMON.md+++ b/CLI_AND_DAEMON.md@@ -728,7 +728,7 @@ multica issue edit-description <id> --old "Status: draft" --new "Status: ready"````--position` sets the raw ordering value within the board column (lower sorts first). For relative moves, `issue reorder` is easier because it works out the value for you.-`--attachment` uploads a local file and appends its Markdown reference to the end of the issue description. Repeat the flag to attach multiple files. To replace an existing image, also use `--description-file` to remove the old reference from the description.+`--attachment` uploads a local file and appends its Markdown reference to the end of the issue description. Repeat the flag to attach multiple files. To replace an existing image, also remove the old reference with `multica issue edit-description <id> --old <old reference> --new ""`.`--description-base-revision` takes the `description_revision` from `multica issue get` and refuses stale description overwrites with HTTP 409 if the description changed since that revision.To change part of a description without rewriting the whole body, use `multica issue edit-description <id>` with `--old` / `--old-file` and `--new` / `--new-file` (add `--replace-all` to replace every occurrence; otherwise `--old` must match exactly once).diff --git a/server/cmd/multica/cmd_issue.go b/server/cmd/multica/cmd_issue.goindex 5efba30e0b..05cb1325a0 100644--- a/server/cmd/multica/cmd_issue.go+++ b/server/cmd/multica/cmd_issue.go@@ -731,7 +731,7 @@ func init() {issueUpdateCmd.Flags().String("description", "", "New description (preserves literal text. Use --description-stdin or --description-file for multi-line input)")issueUpdateCmd.Flags().Bool("description-stdin", false, "Read new description from stdin (preserves multi-line content verbatim)")issueUpdateCmd.Flags().String("description-file", "", "Read new description from a UTF-8 file (preserves multi-line content verbatim; use this on Windows when stdin piping mangles non-ASCII bytes). The path must be inside the current working directory unless --allow-external-file is set.")- issueUpdateCmd.Flags().Int64("description-base-revision", 0, "The description_revision (from `multica issue get`) your new description was written from. Changes made since then are merged in, and the update is refused only where both changed the same paragraphs. Without it the description is replaced as given.")+ issueUpdateCmd.Flags().Int64("description-base-revision", 0, "The description_revision (from `multica issue get`) your new description was written from. Changes made since then are merged in when live description editing is on and the update changes nothing else (no other field flags or --attachment), and the update is refused only where both changed the same paragraphs; otherwise the update is refused if the description changed at all. Without it the description is replaced as given.")issueUpdateCmd.Flags().Bool("allow-external-file", false, "Allow --description-file / --attachment to read a path outside the current working directory. Off by default so a stale temp file from another run/environment can't be picked up (MUL-4252).")issueUpdateCmd.Flags().StringArray("attachment", nil, "Local file path to attach (one literal path per flag; repeat --attachment for multiple files); references are appended to the end of the description, except where the description already links the same path (e.g. ), which is rewritten to the uploaded file in place")issueUpdateCmd.Flags().String("status", "", "New status")@@ -752,9 +752,9 @@ func init() {issueUpdateCmd.Flags().String("output", "json", "Output format: table or json")// issue edit-description- issueEditDescriptionCmd.Flags().String("old", "", "Exact text to replace (required)")+ issueEditDescriptionCmd.Flags().String("old", "", "Exact text to replace (this or --old-file is required)")issueEditDescriptionCmd.Flags().String("old-file", "", "Read the text to replace from a UTF-8 file")- issueEditDescriptionCmd.Flags().String("new", "", "Replacement text")+ issueEditDescriptionCmd.Flags().String("new", "", "Replacement text; \"\" deletes it (this or --new-file is required)")issueEditDescriptionCmd.Flags().String("new-file", "", "Read the replacement from a UTF-8 file")issueEditDescriptionCmd.Flags().Bool("replace-all", false, "Replace every occurrence of --old")issueEditDescriptionCmd.Flags().String("output", "json", "Output format: table or json")@@ -2256,7 +2256,7 @@ func issueDescriptionWriteError(action string, err error) error {"Run `multica issue get`, quote the current text (with more context if it repeats), and retry (%s)",action, httpErr.Body)case strings.Contains(httpErr.Body, "issue_description"):- return fmt.Errorf("%s: --description-base-revision is too old to merge from, so nothing was written. "++ return fmt.Errorf("%s: the description changed since --description-base-revision and could not be merged, so nothing was written. "+"Run `multica issue get` for the latest description and description_revision, or change part of it with `multica issue edit-description` (%s)",action, httpErr.Body)}diff --git a/server/internal/daemon/execenv/runtime_config_sections.go b/server/internal/daemon/execenv/runtime_config_sections.goindex 3eb950761d..3cbc601db2 100644--- a/server/internal/daemon/execenv/runtime_config_sections.go+++ b/server/internal/daemon/execenv/runtime_config_sections.go@@ -287,8 +287,8 @@ func writeAvailableCommands(b *strings.Builder, ctx TaskContextForEnv) {b.WriteString("- `multica issue get <id> --output json` — full issue.\n")b.WriteString("- `multica issue comment list <issue-id> [--roots-only] [--summary] [--thread <comment-id> [--tail N] | --recent N] [--since <RFC3339>] [--compact] --output json` — thread-aware comment reads. Read in two bounded steps: scan with `--roots-only --summary`, then expand one thread with `--thread <id> --tail N`. Careful with `--recent N`: it caps THREADS, not comments, and can return the whole history on a small issue. Resolved-thread folding, paging cursors, and full flag semantics: `--help`.\n")b.WriteString("- `multica issue create --title \"...\" [--description-file <path>] [--priority X] [--status X] [--assignee X | --assignee-id <uuid>] [--parent <issue-id>] [--stage N] [--project <project-id>] [--due-date <YYYY-MM-DD>] [--attachment <path>]` — create an issue. Put agent-authored long descriptions in `--description-file <path>` (heredoc stdin can swallow trailing flags, #4182); write that file inside your working directory, never `/tmp` or shared paths.\n")- b.WriteString("- `multica issue update <id> [--title X] [--description-file <path>] [--priority X] [--status X] [--assignee X] [--parent <issue-id>] [--stage N] [--project <project-id>] [--due-date <YYYY-MM-DD>]` — update fields; pass `--parent \"\"` to clear parent.\n")- b.WriteString("- `multica issue edit-description <id> --old <exact text> --new <text>` — people may be editing a description live, so change part of it with this; a whole new `--description-file` on `issue update` should carry `--description-base-revision <description_revision from issue get>` so edits made since are merged in.\n")+ b.WriteString("- `multica issue update <id> [--title X] [--description-file <path> [--description-base-revision N]] [--priority X] [--status X] [--assignee X] [--parent <issue-id>] [--stage N] [--project <project-id>] [--due-date <YYYY-MM-DD>]` — update fields; pass `--parent \"\"` to clear parent.\n")+ b.WriteString("- `multica issue edit-description <id> --old <exact text> --new <text>` (`--old-file` / `--new-file` for multi-line text or anything with code or quotes) — change part of a description with this, so the rest, including what people are typing live, is kept; a whole new `--description-file` on `issue update` should carry `--description-base-revision <description_revision from issue get>`, so edits made since are merged in or the write is refused — never silently overwritten.\n")b.WriteString("- `multica issue assign <id> (--to X | --to-id <uuid> | --unassign)` — change ownership; assigning to an agent can start a run.\n")writeIssueStatusCommand(b, ctx)b.WriteString(duplicateOfCommandLine)diff --git a/server/internal/service/builtin_skills/multica-platform/references/issues.md b/server/internal/service/builtin_skills/multica-platform/references/issues.mdindex de1534be37..97efe7b7b8 100644--- a/server/internal/service/builtin_skills/multica-platform/references/issues.md+++ b/server/internal/service/builtin_skills/multica-platform/references/issues.md@@ -11,7 +11,7 @@ Product contracts the runtime brief does not fully encode.- [Charts and files in a comment](#charts-and-files-in-a-comment)- [Incorrect to correct](#incorrect-to-correct)-To attach a local file to an existing issue description, use `multica issue update <id> --attachment <local-path>`. The CLI appends the file's Markdown reference to the end of the description; to replace an image, also use `--description-file` to remove the old reference. Do not put local filesystem paths in the description.+To attach a local file to an existing issue description, use `multica issue update <id> --attachment <local-path>`. The CLI appends the file's Markdown reference to the end of the description; to replace an image, also remove the old reference with `multica issue edit-description <id> --old <old reference> --new ""`. Do not put local filesystem paths in the description.## PR linking