Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-7481: chore(cli): fold comment update guidance into --help and drop the skill section (#8548)

Bohan Jiangc3920bc0530c
diff --git a/server/cmd/multica/cmd_issue.go b/server/cmd/multica/cmd_issue.go
index d973c7fccd..e469af20e5 100644
--- a/server/cmd/multica/cmd_issue.go
+++ b/server/cmd/multica/cmd_issue.go
@@ -272,8 +272,12 @@ var issueCommentUpdateCmd = &cobra.Command{
Short: "Update a comment",
Long: "Update a comment you authored. Workspace owners and admins can update any comment.\n\n" +
"Pass the revision returned by `multica issue comment list <issue-id> --output json`; " +
- "the update is rejected if another editor changed the comment first. Changing the content " +
- "uses the same agent-trigger behavior as editing the comment in the app.",
+ "the update is rejected if another editor changed the comment first. On that rejection, " +
+ "read the latest body and merge your change into it before retrying. Do not just resend " +
+ "with the newer revision: that overwrites the other edit.\n\n" +
+ "Changing the content is a new trigger, not a silent fix: the server cancels runs this " +
+ "comment triggered that are still in flight and re-enqueues every agent the new body " +
+ "mentions. Attachments are left as they are.",
Args: exactArgs(1),
RunE: runIssueCommentUpdate,
}
@@ -649,7 +653,7 @@ func init() {
issueCommentUpdateCmd.Flags().Bool("content-stdin", false, "Read new comment content from stdin (preserves multi-line content verbatim)")
issueCommentUpdateCmd.Flags().String("content-file", "", "Read new comment content 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.")
issueCommentUpdateCmd.Flags().Bool("allow-external-file", false, "Allow --content-file to read a path outside the current working directory. Off by default so a stale file from another run/environment can't be picked up (MUL-4252).")
- issueCommentUpdateCmd.Flags().Int64("expected-revision", 0, "Current positive comment revision from `issue comment list --output json` (required; prevents overwriting a concurrent edit)")
+ issueCommentUpdateCmd.Flags().Int64("expected-revision", 0, "Current positive comment revision from issue comment list --output json (required; prevents overwriting a concurrent edit)")
issueCommentUpdateCmd.Flags().String("output", "json", "Output format: table or json")
// issue comment resolve/unresolve
diff --git a/server/cmd/multica/cmd_issue_test.go b/server/cmd/multica/cmd_issue_test.go
index 01a5507b53..25ce83865a 100644
--- a/server/cmd/multica/cmd_issue_test.go
+++ b/server/cmd/multica/cmd_issue_test.go
@@ -385,8 +385,13 @@ func TestIssueCommentUpdateCommandRegistration(t *testing.T) {
if cmd != issueCommentUpdateCmd {
t.Fatalf("found command = %q, want issue comment update", cmd.CommandPath())
}
- if !strings.Contains(cmd.Long, "agent-trigger behavior") {
- t.Fatalf("long help should disclose edit side effects, got %q", cmd.Long)
+ for _, anchor := range []string{
+ "merge your change into it before retrying",
+ "re-enqueues every agent the new body mentions",
+ } {
+ if !strings.Contains(cmd.Long, anchor) {
+ t.Fatalf("long help should carry the conflict rule and the re-trigger side effect (missing %q), got %q", anchor, cmd.Long)
+ }
}
for _, name := range []string{"content", "content-stdin", "content-file", "allow-external-file", "expected-revision", "output"} {
if cmd.Flags().Lookup(name) == nil {
diff --git a/server/internal/service/builtin_skills/multica-platform/references/issues.md b/server/internal/service/builtin_skills/multica-platform/references/issues.md
index 594ff6c7ee..058fec7bfd 100644
--- a/server/internal/service/builtin_skills/multica-platform/references/issues.md
+++ b/server/internal/service/builtin_skills/multica-platform/references/issues.md
@@ -4,7 +4,6 @@ Product contracts the runtime brief does not fully encode.
- [PR linking and close intent are two distinct contracts](#pr-linking-and-close-intent-are-two-distinct-contracts)
- [Reading a linked PR's real state](#reading-a-linked-prs-real-state)
-- [Editing comments without overwriting concurrent work](#editing-comments-without-overwriting-concurrent-work)
- [Custom properties: typed workflow state](#custom-properties-typed-workflow-state)
- [Status changes have server side effects](#status-changes-have-server-side-effects)
- [Claim ownership without duplicating a run](#claim-ownership-without-duplicating-a-run)
@@ -12,23 +11,6 @@ Product contracts the runtime brief does not fully encode.
- [Sub-issues: todo starts work now, backlog parks it](#sub-issues-todo-starts-work-now-backlog-parks-it)
- [Incorrect to correct](#incorrect-to-correct)
-## Editing comments without overwriting concurrent work
-
-Read the comment's current `revision`, then supply that positive value when
-updating its body. Agent-authored bodies must use `--content-file`.
-
-```bash
-multica issue comment list <issue-id> --output json
-multica issue comment update <comment-id> --content-file ./comment.md --expected-revision <revision>
-```
-
-If another editor changed the comment, the server rejects the stale revision.
-Read the latest body and reconcile the edits before retrying; do not simply
-advance the revision and overwrite the other edit. Authors can edit their own
-comments; workspace owners and admins can edit any comment. Existing attachments
-remain unchanged. Content edits have the same agent-trigger behavior as edits
-in the app, so do not use an update as a silent bookkeeping operation.
-
## PR linking and close intent are two distinct contracts
The GitHub webhook runs two separate scans over an incoming PR. They are not the