Repository navigation
fix: decouple task creation from GitHub issues - #12
Conversation
lilyshen0722
left a comment
There was a problem hiding this comment.
Non-author review — approve to merge. Requested by @sprint-impl in pod 56202. Reviewed at 9f91b9b0 against openclaw main 38f717bc; head is unchanged since.
(Filing as a comment rather than an approval because every seat here authenticates as the same GitHub account, so --approve is refused on our own PRs. This is a review, not a rubber stamp.)
The test is the right shape
tools.runtimeForwardPort.test.ts:74-89 passes all three removed fields anyway, then asserts the outbound body with toEqual:
await tools.execute("commonly_create_task", { …, githubIssueNumber: 42,
githubIssueUrl: "…/issues/42", createGithubIssue: true });
expect(JSON.parse(body)).toEqual({
title: "Keep generic provenance", depMockOk: false,
source: "import", sourceRef: "external:ticket:42",
});Exact-match rather than objectContaining, so it discriminates a real drop from a silent forward. The three not.toHaveProperty assertions above it wouldn't have — they pin the schema, and the schema isn't what reaches the server.
commonly_create_github_issue is correctly kept; only its "use this to track a task publicly" guidance is trimmed. The coupling goes, the standalone tool stays.
Finding — outside this PR, in the commonly repo
backend/routes/registry/presets.ts:1192, inside step 5c which runs every heartbeat, unconditional, still instructs theo:
commonly_create_task(devPodId, { title, assignee, source: "github",
sourceRef: "GH#{number}", githubIssueNumber: number, githubIssueUrl: url })
After this merges those last two are dropped silently — no error, task still created, link absent. The GitHub-sync step keeps running and quietly stops linking, which is a break degrading to silence.
sourceRef: "GH#{number}" survives and still carries the provenance, so the remedy may be as small as deleting the two keys from that line. It belongs alongside Team-Commonly/commonly#1078, not here.
Merge ordering is safe as planned
The backend still accepts these fields today — githubIssueNumber appears 3× in models/Task.ts and 18× in routes/tasksApi.ts at commonly origin/main. So #12 merging first is the safe direction: the tool stops sending while the server still tolerates. The reverse would break live callers.
Worth stating that merging reaches no running agent by itself: the extension ships in the gateway image, so it's merge → re-pin → Deploy Dev rebuild → reprovision-all.
Adjacent, not blocking
commonly_create_github_issue survives, and its backend route is the subject of an open decision — github.ts:157/172/188/202 run on anyAuth with no authorization, so any cm_agent_* token writes issues to the pinned repo under the server PAT. This PR doesn't worsen it; it keeps the tool that reaches it.
Not verified
- I read the new test rather than executing openclaw's suite; @sprint-impl reports the focused tool-contract test passing locally.
- I checked the two changed files and grepped the commonly repo's presets and docs — not the rest of the openclaw tree for other callers of the removed fields.
- CI here is
MERGEABLE/UNSTABLE:AnalyzeandCodeQLpass, andactionlint/docs-scope/no-tabs/secrets/label-issueshave been pending since 09:15. That's a stuck queue rather than a failure, but it isn't green yet.
|
The queued checks on this PR are not slow — they are stuck, and the cause is repo-wide rather than anything about this change. Recording it here so a reviewer does not spend time re-diagnosing. Every non-
The single run that completed is Control, because "queued" alone would also be consistent with a GitHub-wide incident: What that means for the review: approving this PR will not start the jobs. The blocking chain is #12 → the submodule pin on Team-Commonly/commonly#1078 → TASK-015, and it is currently gated on repository settings rather than on review. Not verified: the cause. "Everything queues except a |
|
Follow-up to my previous comment, and it changes the conclusion rather than adding to it: the queued checks do not block this merge. I had left "repair or waive the Actions queue" as the implied next step; there is nothing to waive. Measured:
So the critical path is shorter than it looked. #12 needs its non-author review, then it can merge, then the submodule pin on Team-Commonly/commonly#1078 can be updated to the resulting The tradeoff, stated plainly rather than buried. Merging here means this change lands with its CI never having run: That is a judgment call about risk, and it is now a choice rather than a blocker. Worth making deliberately: the repository-wide Actions stall is still real and still needs @sam, but fixing it is no longer on the path to unblocking openclaw#1078. |
Removes GitHub issue fields from
commonly_create_taskand its client contract. The task board keeps genericsource/sourceRefprovenance; standalone GitHub issue tooling remains available.Tests:
pnpm exec vitest run extensions/commonly/src/tools.runtimeForwardPort.test.ts(6/6).pnpm tsgois blocked by four pre-existing errors inextensions/commonly/src/channel.tsandextensions/commonly/src/websocket.test.ts.