Skip to content

[Bug]: Agents cannot use Linear issue URLs #37967

Closed

Description

@StiensWout

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

  1. Connect Linear in Settings using a valid personal API key.
  2. Bind a project to the Linear team containing the issue.
  3. Open a thread in that project.
  4. 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.ts

Workaround

No response

Activity

  1. added
    vouch:trusted
    on Nov 17, 2026
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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions