Skip to content

messaging: the approval Slack DM's link is built as origin + in-app path with no Console mount, so it likely opens the same 404 the approval e-mail did before #36247 #36301

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

Filing gate ① · Source: fleet · raised by area a4-B while landing PR #36247 (#34862). Read from source on main b57f778, not measured.

What happens

packages/services/service-messaging/src/slack-channel.ts:130-168: slackDmText links the DM title to absoluteLink(n.actionUrl, origin), which is origin + actionUrl when actionUrl is a path. For an approval, actionUrl is the in-app route /system/approvals?request=ID, which the Console routes on under its mount (AuthConfig.uiBasePath, default /_console). The DM link carries no mount, so on a default deployment it should land on the same "not found" page the approval e-mail link opened before #36247.

Done when

reach: approvers who get approvals in Slack; read from source.
Business reason: the one link in the approval DM may open an error page.
Reader: service-messaging; plugin-approvals wiring.
Dedupe: slack DM link console, slack-channel console mount, slack link 404 → only #35844 (origin, not mount; related, not the same).
Grade: p2.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    area:workflow
    domain:server
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (messaging, approval Slack DM) · pm:queue; rationale: area:workflow · Bug · the approval Slack DM builds its link as origin plus in-app path with no Console mount, so it likely opens the wrong page; read from code. Same family as #35844 and #34862 (p1) → p2 as filed · size S. Linked under topic #36243 (审批收尾).

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzjF6c6pWoGHX3bWhw9
    os-dev-report
    Stamp: 2026-11-23T11:12Z

    {
      "issue": 36301,
      "status": "done",
      "branch": "claude/project-thread-5p7j0q",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36680",
      "session": "session_01WGufzjF6c6pWoGHX3bWhw9",
      "premise_still_valid": true,
      "summary": "The Slack channel made a relative actionUrl absolute as origin + path with no Console mount. It now builds the link under origin + mount via the new exported consoleLinkBase(origin, composer), the mount read per delivery from the auth service's getConsoleUrl (AuthConfig.uiBasePath), path only, less any base path shared with the origin; MessagingServicePlugin wires the composer from the auth service. No plugin-approvals change and no new package edge; the producer's actionUrl stays relative. All four order premises measured true on origin/main 9348f02b.",
      "tests": "head edff20ff0: service-messaging typecheck exit 0; service-messaging test: Test Files 80 passed (80), Tests 1090 passed (1090). New pins: slack-channel.test.ts (mount, custom uiBasePath and '/', sub-path not doubled, composer origin ignored, absent/throwing/non-URL composer, no origin) and slack-channel-composition.test.ts (through MessagingServicePlugin, with and without getConsoleUrl). Ablation via scripts/ablation-replace.mjs on the committed fix: send path back to bare origin => 2 failed / 19 passed; plugin wiring without getConsoleUrl => 1 failed / 20 passed; both restored to the HEAD blob. Live: showcase pnpm dev --fresh with a Slack Web API sink preload; approval DM before = http://localhost:42375/system/approvals?request=... (that path answers 404 ENDPOINT_NOT_FOUND), after = http://localhost:42051/_console/system/approvals?request=... (the Console mount).",
      "gates": "local: dispatch-gates --commands derived 73 families, 73 run, all exit 0; --ran: 73 derived, 73 run, 0 NOT-MEASURED. check-plugin-teardown-shape --self-test first exit 3 (shallow clone), exit 0 after fetching its fixture commit. check:query-options-erasure re-run on HEAD (exit 0) because its first run overlapped the live before-leg. CI: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — issue_read x3 (36301 get + comments, 35844 get), pull_request_read x1 (36680 get), claude-code-remote get_session x1; no GitHub write tool",
      "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#36680, assignee os-support-ai) and this post-stamped comment on #36301; git push not counted",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: #35844 · the DM origin source (publicBaseUrl vs env chain) is untouched; consoleLinkBase takes the caller's origin so #35844 can reuse it · noted, not filed", "carrier: none · the Console sub-path mount rule now lives twice (plugin-approvals consolePageLink and service-messaging consoleLinkBase) because neither package depends on the other · noted in Acceptance notes, not filed"]
    }
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Claim: PM loop round 1
    Session: session_01WGufzi4PechTRCTBrfxV8W
    Thread session: session_01WGufzjF6c6pWoGHX3bWhw9
    Account: os-support-ai
    Branch: claude/project-thread-5p7j0q
    Worktree: objectstack-issue-36301
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/services/service-messaging/src/** (stop on breach; explain in the report)
    Container & model: S–M, mode:thread, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate"; the thread reports it is served at that tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in objectstack (service-messaging slack-channel.ts absoluteLink) | the email path's consolePageLink (#36247) covers email only | any approver opening an approval Slack DM link on a deployment with a Console mount
    Thread-read: 7099266434
    Premise: holds
    Serial constraints cleared: none in flight on service-messaging slack-channel.ts; #35844 (p3, same function) is outside this seat's p1/p2 intake and not folded

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Closed by PR #36680 (merged 0fc430a, Fixes #36301). pm:dispatched removed · 2026-11-24T00:06Z.

  7. removed
    pm:dispatched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowbugdomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions