Repository navigation
Closed
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Connect Linear in Settings using a valid personal API key.
- Bind a project to the Linear team containing the issue.
- Open a thread in that project.
- Ask the agent to read an issue using its full Linear URL, such as https://linear.app/acme/issue/ENG-1/issue-title.
Expected behavior
The agent reads the linked Linear issue using the connected tracker.
Actual behavior
The issue tool returns "This is not a recognised issue URL." Reading the same issue by its identifier works.
Impact
Minor bug or occasional failure. Anyone using Linear issue URLs with agent issue tools encounters this on every attempt to read, comment on, change the state of, or link an issue by URL.
Version or commit
main at 0df1967cfa. The cause is at apps/server/src/issue/IssueService.ts:626.
Environment
Linux x64, the repository's own tests.
Logs or stack traces
This is not a recognised issue URL.Automated repro
Fails in 2 of 2 runs on main: apply the patch with git apply, then run the command.
diff --git a/apps/server/src/issue/IssueService.test.ts b/apps/server/src/issue/IssueService.test.ts
index fd6f7b2f0a..59b6a7f9ec 100644
--- a/apps/server/src/issue/IssueService.test.ts
+++ b/apps/server/src/issue/IssueService.test.ts
@@ -484,6 +484,21 @@ describe("IssueService with a standalone tracker", () => {
}),
).toMatchObject({ host: "github.com", writable: true });
+ const resolved = yield* bound
+ .resolveUrl("https://linear.app/acme/issue/ENG-1/issue-title", "web" as ProjectId)
+ .pipe(Effect.result);
+ expect(resolved).toMatchObject({
+ _tag: "Success",
+ success: {
+ projectId: "web",
+ tracker: LINEAR,
+ host: "linear.app",
+ scope: "ENG",
+ key: "ENG-1",
+ writable: true,
+ },
+ });
+
// Unbound, the standalone scope is gone and its references are unsupported.
listed.length = 0;
const unbound = yield* makeService({ projects, trackers });cd apps/server && pnpm exec vp test run src/issue/IssueService.test.tsWorkaround
No response
Metadata
Metadata
Assignees
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
Activity