Skip to content

评论的表情回应取消不了:再点一次提示「表情回应未保存,请重试」,取消请求返回「接口不存在」(托管环境) #36469

Open

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

父单 #34571 (moved from closed sub-topic #36062; #34571 is at the platform's 100 sub-issue limit, so the link is this line)

立卡门类别:④ 协调节点的子单,承父单 #36062(评论专题)。⛔ 不是认领。优先级 p1(协调席定的,维护者未指定:已上线功能点了就报错)。

维护者说过的(2026-11-22)

  • 「现在更新最新的代码,验收开发成果」
  • 协调席汇报验收发现的缺陷后,维护者:「bug立卡」。

现状(主干 6a35635a33(cloud e9da58ce77),本机托管环境,浏览器实测,账号是系统管理员)

取消表情时的报错

  • 在自建应用「CRM客户管理」的一条客户记录上发一条评论,给它点 👍:成功,显示「👍 1」。
  • 再点一次这个「👍 1」想取消:顶部提示「表情回应未保存,请重试。」,数字仍是 1。
  • 连续试了 2 次(手机宽度的评论串里一次,重新打开页面后一次),2 次都失败。
  • 界面发出的请求是 DELETE /api/v1/comments/reactions/<id>,返回 404,{"code":"ENDPOINT_NOT_FOUND","message":"Not found"}。
  • 这条接口的代码在主干上有(packages/plugins/plugin-audit/src/comment-reaction-routes.ts,由 audit-plugin.ts 在拿到 HTTP 服务后挂上,挂上时会打一行日志 AuditPlugin: comment doors mounted at …,拿不到时打一行警告)。本机托管环境这次启动的日志里 AuditPlugin 的其他行都在,这两行都没有。
  • 同一段代码还挂了「标记已解决」(PUT)和「删除自己的评论」(DELETE)两条接口,所以它们在托管环境里很可能同样不通。这两条协调席没有点。

要做的

  1. 找出托管环境里这组评论接口为什么没有挂上,让它挂上。单机运行(os serve)是否正常,一并确认。
  2. 修好后:取消表情回应成功,数字减一;「标记已解决」和成员删除自己的评论在托管环境里各走通一次。
  3. 加一条能在托管形态下拦住这类问题的检查(这组接口没挂上时要有失败的测试或启动告警,而不是静默)。

不做的

  • 不改表情回应的界面。

验收

  • 托管环境(本机 cloud rig 或 staging)里:给评论点 👍 再点一次,👍 消失,请求返回成功。
  • 同一环境里:把一条评论标记已解决再取消;一个没有删除权限的普通成员删除自己的评论成功。
  • 环境启动日志里有 comment doors mounted 一行。
  • PR 正文写明原因在哪个仓库、哪一层。

协调席自己加的

  • 「要做的」第 3 条(加检查)。
  • 原因的推断(日志里缺两行)是协调席读日志和代码得出的,没有调试确认。线上 staging 没有验。
  • 如果原因在 cloud 仓库的托管内核装配里,请席位把修复放到 cloud,本卡留作记录。

Activity

  1. added
    bug
    priority:p1
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    通知记录 · 2026-11-22T13:06Z

    维护者 2026-11-22:「bug立卡」;此前:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位 repo:objectstack#7,随后在它的信箱 #36199 里发一条。

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · a child the coordinator filed under #36062, measured in the browser → p1 as set by the coordinator · size S.

  4. added
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Claim: PM loop round 6 (area:ux topic child of #36062)
    Session: session_01ADHkmRY38EZf38Yy3zthbY
    Account: os-steve
    Branch: claude/issue-36469-comment-doors-hosted
    Worktree: objectstack-issue-36469
    Domain: domain:ui (the fix is expected server-side: packages/plugins/plugin-audit)
    Seat: repo:objectstack#2
    Area: area:ux
    File surface: packages/plugins/plugin-audit/src/{audit-plugin,comment-reaction-routes,comment-reaction-route-ledger}.ts and their tests; whatever objectstack host/runtime path decides whether the plugin gets the HTTP service on a hosted boot, only as the measured root; .changeset/ (stop on breach; if the root is in cloud, stop and report carrier: cloud)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate, "floor sonnet · default opus · ceiling fable"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack plugin-audit comment doors | none on a hosted boot (no "comment doors mounted" line, no warning) | members on hosted environments: unreact, resolve, delete-own-comment answer 404
    Order: the maintainer, verbatim 「你开始 接 area:ux 专题任务,只处理 p1 p2 ,7号座位只处理在手任务,你接手其他」 (2026-11-22T14:49Z, this seat's project thread)
    Thread-read: 7080043490
    Premise: holds structurally at origin/main — the doors are registered by audit-plugin.ts (~L1074-1121, the "comment doors mounted" log line) once it holds the HTTP service; the card measured both the success line and the warning absent on a hosted boot. Which layer drops it is the dev's measurement.
    Serial constraints cleared: no open PR touches packages/plugins/plugin-audit/**; seat 7 does not hold this card (pm:queue, no assignee, no claim).

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
    os-dev-report

    {
      "issue": 36469,
      "status": "blocked",
      "branch": "claude/issue-36469-comment-doors-hosted",
      "pr": null,
      "session": "session_01ADHkmRY38EZf38Yy3zthbY",
      "premise_still_valid": true,
      "summary": "Root is in objectstack, not cloud: the three comment doors (DELETE /api/v1/comments/reactions/:id, PUT /api/v1/comments/:id/resolution, DELETE /api/v1/comments/:id) are mounted by AuditPlugin.start() then mountCommentDoors only on the kernel's own http.server; a hosted tenant kernel owns no socket and registers no http.server (stated in-repo: runtime/src/domains/webhooks.ts, approvals.ts, service-storage mount-storage-routes.ts, action-execution.ts), and the runtime HttpDispatcher has no domain for /comments, so the request falls through the host's createHonoApp catch-all to the unmatched 404 ENDPOINT_NOT_FOUND 'Not found' (plugin-hono-server adapter.ts unmatchedResponse), exactly the card's body. Layer: packages/plugins/plugin-audit (raw-server-only mount) plus packages/runtime (no hosted-door domain). This is a new member of the class already ruled on #22438 (record 6079645593, maintainer 'A + 扫类'): fix shape = spec optional transport-neutral member on a service contract (domain:spec, goes first) + an exact runtime dispatcher domain with a typed 501 on absent slot (domain:cli) + the plugin member with the raw mount byte-unchanged (this lane); the #22564 sweep census only classified getRawApp() mounts and so missed doors registered through IHttpServer verbs. Blocked because that shape needs packages/spec and packages/runtime, outside the claim's file surface (stop on breach) and a contract-shape addition my rules route away from a dev; nothing in the claimed surface can land alone (the plugin member waits on the spec member's shape, and the card's item-3 failing hosted-shape pin can only land with the bridge). os serve: by reading, a kernel with HonoServerPlugin registers http.server before AuditPlugin.start, so mountCommentDoors mounts and logs 'comment doors mounted'; the boot leg was NOT MEASURED (lock never acquired). Why the hosted log showed neither line is unmeasured here: on a kernel with no http.server the code path prints the warn, so either the rig's tenant-kernel logs are not surfaced at that level or the rig ran a build before d12ac84e3 (published @objectstack/plugin-audit 18.6.0, 2026-11-18, predates it and logs 'unreact door' instead); cloud is not readable from this session.",
      "tests": "No code change, no tests added. Runtime measurement NOT MEASURED: a scratch two-shape test (createHonoApp over a kernel with no http.server vs HonoServerPlugin raw app, real AuditPlugin) was written and deleted unrun because its build closure never got the lock: three tries with OS_VERIFY_LOCK_SLOT=issue-36469, each 'VERDICT queue-timeout (exit 99) · never acquired · waited 540s', holder pid 17598 'pnpm --filter @objectstack/dogfood test' held 2542s at the last try (os-verify-lock.sh --status: ALIVE, same process). Static readings on origin/main c9b0a2305 (worktree tree): git grep for '/comments', '/personal-views', '/attachments' over packages/runtime/src and packages/adapters/hono/src (non-test) = 0 hits; control: 'webhooks/redeliver|approvals/act' = 9 hits in runtime/src/domains/webhooks.ts and 5 in approvals.ts; audit-plugin.ts start() line 551 calls mountCommentDoors, which returns on no http.server/http-server after one warn (lines 1095-1105).",
      "gates": "None run: no diff. dispatch-gates --commands not derived (empty change set).",
      "dogfood_battery": "n/a — no PR, no `!` title, no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — the os-dev-report comment on #36469 via post-stamped.mjs (fleet-write relay). Plus one git push of the empty branch claude/issue-36469-comment-doors-hosted at c9b0a2305 as the write probe (not REST).",
      "open_questions": [
        {
          "question": "How should the comment doors reach a hosted tenant kernel?",
          "options": [
            "A — apply ruling 6079645593 A to this class member, split as #22438/#22564 were: (1) domain:spec, an optional transport-neutral member (Request in, Response out) on a new comment-doors service contract and slot; (2) domain:cli, an exact /comments dispatcher domain claiming the three method+path shapes, typed 501 on absent slot or member, no preamble-gate exemption (session credential, like /webhooks/redeliver); (3) this lane, AuditPlugin registers the slot and implements the member over the same registrars, raw mount byte-unchanged, plus a hosted-shape conformance pin in packages/qa/http-conformance (card item 3). About 3 PRs, S-M each.",
            "B — cloud's host mounts an exported registrar over each tenant kernel (the mountStorageRoutes precedent); carrier cloud, objectstack exports one entry point.",
            "C — one generic per-kernel route seam the dispatcher serves for any IHttpServer-verb door on a socketless kernel, closing this whole family (6 routes, 3 plugins) at once; rejected for approvals in ruling 6079645593, so it would need the maintainer."
          ],
          "recommendation": "A, because the maintainer already ruled this exact class ('A + 扫类') and the sweep simply missed IHttpServer-verb mounts, so the seat can split and dispatch without a new ruling; the family findings below ride the same shape."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: named producer, same class as this card — plugin-auth's personal-view delete door (DELETE /api/v1/personal-views/:id) is mounted only inside the registerRoutes branch on http.server (auth-plugin.ts ~1700-1707), which a hosted tenant kernel skips (registerRoutes false), and no runtime domain serves /personal-views (0 hits); unmeasured on a live hosted rig · dedupe words: personal view delete door hosted tenant kernel http.server",
        "class: a · reach: named producer, same class — service-storage's attachment removal and rename doors (DELETE/PATCH /api/v1/attachments/:id) are mounted only when the kernel has an http server (storage-service-plugin.ts ~812); the host door mountStorageRoutes calls composeStorageRoutes only, not mountAttachmentRemovalDoor, and no runtime domain serves /attachments (0 hits); unmeasured on a live hosted rig · dedupe words: attachment removal rename door hosted mountStorageRoutes",
        "class: b · reach: named producer — ruling 6079645593 A-2 sweep (#22564) closed on a census of getRawApp() mount sites only; doors registered through IHttpServer verbs (the three comment doors plus the two families above) were outside the census, and A-3 (a conformance pin over the hosted shape) was never added; recommend one family close-out card enumerating all six routes · dedupe words: hosted door sweep IHttpServer verb mount census",
        "carrier: none · noted: PR #36399 (seat 7) overlap with this card is zero, nothing was edited"
      ]
    }
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Scope update · seat's call on the dev's blocked report 7081359453

    Finding accepted. The root is in objectstack, not cloud. The three comment doors are mounted only on the kernel's own http.server, a hosted tenant kernel has none, and the runtime HttpDispatcher has no /comments domain. The request therefore falls through to the host's unmatched 404, the card's exact body.

    Ruling-ref: 6079645593 (#22438, maintainer 「A + 扫类」). Its A-2 sweep bridges every member of this class "the same way". The #22564 census counted only getRawApp() mounts and missed doors registered through IHttpServer verbs. This card is such a member, so the seat applies A without a new ruling:

    1. packages/spec: an optional transport-neutral member (Request in, Response out) on the comment service contract the doors belong to (Clause-②: yes (widening)). If no contract exists, the smallest new one.
    2. packages/runtime: an exact /comments dispatcher domain for the three method+path shapes that forwards to the request kernel's slot. An absent slot or member answers a typed 501, never ENDPOINT_NOT_FOUND. There is no auth-gate exemption: these doors take the session credential, like /webhooks/redeliver.
    3. packages/plugins/plugin-audit: AuditPlugin implements the member over the same registrars, and the self-hosted raw mount stays byte-unchanged (no double mount).
    4. A test on the dispatcher-only shape (createHonoApp over a kernel with no http.server, real AuditPlugin) that answers each door: red before, green after. This is the card's item 3. It is not the class-wide conformance gate A-3, which the ruling left at default no.

    New file surface: the above, their tests, .changeset/. One PR (a single seat owns all three layers), with Fixes #36469.
    Clause-②: yes (widening), a published contract ⇒ CONTRACT_REVIEW_TIER L2.
    Out of scope, filed separately as a finding: the other two members the dev named (plugin-auth personal-view delete; service-storage attachment remove/rename).

  9. 7 remaining items

  10. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Release: #36469 → repo:objectstack#1 · reason: hand-over by maintainer order, remaining work not started.

    By the maintainer's order: Steve, 2026-11-23 05:20Z, project chat:「你没开始开发的都交给 objectstack #1」(correcting 05:20Z「你没开始开发的都放回队列」). Seat repo:objectstack#2 is winding down (Steve 03:55Z「…然后不再接新任务」).

    • Done: PR fix(comments): unreact, resolve and own-comment delete answer on a kernel with no http.server #36539 merged 2026-11-22 22:55Z (Part of): unreact, resolve and own-comment delete reach the route the console calls.
    • Remaining, not started: the hosted environment still answers the reaction-remove request with "route not found" because the hosted pin does not carry the fix. repo:cloud#5 offered a local live probe of the remove request; that probe waits on the maintainer's order (seat comment 7087227980). Next step for the taker: get the hosted pin moved past d463c46f64 or the probe ordered, then re-check and close.
  11. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 23, 2026
  12. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 6 · 2026-11-23T12:13Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbZu8LTZdVjqiEi4pci
    Account: os-warren
    Branch: none expected. This is a verification card; any code change needs the seat's word first
    Worktree: objectstack-issue-36469
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36469 (w6-F)
    Dispatch: p1 · area:ux, a child of epic #36062. Handed to this seat by seat 2's release 7087227980-era hand-over (latest comment), by the maintainer's order there (「你没开始开发的都交给 objectstack #1」).
    File surface: reads only. The code fix is merged: PR #36539, 2026-11-22. What remains is to establish which objectstack commit the hosted environment runs. That means the cloud repo's framework reference and its deploy workflows, read only. Then establish whether that commit contains d463c46f64. Either record the re-check or file the maintainer card that moves the hosted pin or orders the cloud#5 live probe
    Container & model: S, mode:thread, model: opus — dispatch-gates --tier: default tier, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the hosted environment runs a framework build older than the fix | removing a comment reaction on hosted | every hosted user who removes a reaction
    Thread-read: none
    Premise: seat 2's release says the hosted pin does not carry the fix. The thread re-reads the pin
    Serial constraints cleared: no open PR names #36469

  13. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  14. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Progress · 2026-11-23T16:56Z (answers triage#1's idle request): the fixes are on main (#36539, #36690 and #36712, all merged). What remains is the hosted environment. Staging answers the reaction remove correctly, and production does not until it runs a build that includes them. That deploy is the maintainer's step, tracked on #36703 (pm:awaiting-maintainer, assigned to the maintainer). The card closes after a live check on production once #36703 is done. Nothing is waiting on a card thread.

  15. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Release: #36469 → pm:blocked · seat repo:objectstack#1 (session_01JQwxbZeHNsF3RWcWpj7rGj) clocks out · reason: the maintainer's order 「让他走下班流程」, written on the seat's behalf by this os-warren session.

    Blocked-by: #36703

  16. added
    pm:blocked
    and removed
    pm:dispatched
    on Nov 26, 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

    area:uxbugdomain:uipm:blockedpriority:p1

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions