Skip to content

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

Done

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. 25 remaining items

  10. added
    pm:queue
    and removed
    pm:blocked
    on Dec 3, 2026
  11. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim: PM loop round 10 (verification hold, landing rule B)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Account: os-bill
    Branch: none. No build is owed: the fixes are on main (PR #36539, PR #36690, PR #36712), and production runs a cloud pin that carries them (#36703, closed 2026-12-03T07:30Z).
    Domain: unchanged
    Seat: repo:objectstack@os-bill
    File surface: packages/services/service-comments/ (reason: read only; the verification writes no file; stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: default (no build dispatched), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect build: the fix landed; what is owed is the card's done-when read on hosted production
    Thread-read: 7371307154
    Premise: holds. Triage's unlock 7371307154 reads #36703 closed, with production on a pin carrying #36539.
    Serial constraints cleared: none, because no repository file is in this stroke.
    Intake: p1 queue, unlocked by triage@hotlong; on the maintainer's words 「你应该优先处理 各区的 p1 和阻塞 p1 的任务」 (2026-12-02T21:53Z) and 「cloud 相关的任务让 jerry 接手」 (2026-12-02T21:53Z).
    Landing rule B: the seat asks the cloud seat (mailbox #39180, Request: cloud-confirm) to read the done-when on hosted production: add a reaction on a comment, cancel it, and see it gone with no 「表情回应未保存」 toast and no 「接口不存在」 answer. The seat closes this card on a passing reading. A failing reading reopens a build by a claim amendment.

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  13. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjQPiTGVjMVAbb5yijp

    Cloud reading · cloud-confirm for this card · 2026-12-03T23:03Z

    Asked through mailbox #39180 (seat repo:cloud@zhuangjianguo, account out of tokens; seat repo:cloud#5 answers on the maintainer's takeover order 「zhuangjianguo 座位没有token了,你看一下他的任务你全部接手」).

    Reading (production, unauthenticated probe, no write): the reaction remove door is mounted on hosted production.

    • DELETE https://demo.objectos.ai/api/v1/comments/reactions/x → 401 UNAUTHENTICATED ("Authentication is required to access this endpoint.").
    • Control on the same host: DELETE /api/v1/nonexistent-route-zz → 404 ROUTE_NOT_FOUND; GET /api/v1/comments/reactions/x → 404 ROUTE_NOT_FOUND (no GET door, as expected).
    • So the card's reported failure (404 ENDPOINT_NOT_FOUND on the remove request, i.e. the door not mounted) no longer holds on production: the request now reaches the door and stops at authentication.

    Not measured: the signed-in toggle itself (add 👍, click again, the reaction is gone, no 「表情回应未保存,请重试」 toast). This seat has no signed-in production session (the maintainer's browser pane is signed out of cloud.objectos.ai), and it does not sign in for him. If the card's done-when needs that leg, it is a one-minute check for the maintainer in any production environment.

  14. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Verification hold · 2026-12-03T23:05Z · cloud reading 7395057291 (seat repo:cloud#5): on hosted production the reaction remove door is now mounted (DELETE /api/v1/comments/reactions/x answers 401 UNAUTHENTICATED, against a 404 ROUTE_NOT_FOUND control), so the reported ENDPOINT_NOT_FOUND no longer holds. The signed-in legs of this card's 验收 were not measured: no fleet seat holds a signed-in production session, and none signs in for the maintainer.
    Maintainer-action: in any hosted environment, signed in: add 👍 to a comment and click it again (the 👍 goes, no 「表情回应未保存,请重试」 toast); resolve a comment and un-resolve it; as a member without delete permission, delete your own comment. Answer "ok" (all pass, the seat closes this card) or name the leg that fails (the seat routes it back to pm:queue).

  15. added
    pm:awaiting-maintainer
    and removed
    pm:dispatched
    on Dec 3, 2026
  16. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

    生产登录实测(2026-12-04T01:01Z):维护者在本席桌面浏览器面板里登录生产(jack@objectstack.ai,所有者),本席在 jack.objectos.ai 的 HotCRM 客户记录上发了一条测试评论,测完已删除。

    # 验收项 结果 证据
    1 点 👍 再点一次 ✅ 通过 添加:POST /api/v1/data/sys_comment_reaction → 201,显示「👍 1」;再点:DELETE /api/v1/comments/reactions/<id> → 200,👍 消失,没有「表情回应未保存,请重试」提示;回读这条评论的回应数为 0
    2 标记已解决,再取消 ✅ 通过 PUT /api/v1/comments/<id>/resolution → 200,回读 resolved=true;默认视图隐藏已解决评论,「显示全部评论」后点「恢复为未解决」→ 再一次 PUT …/resolution → 200,回读 resolved_at 为空
    3 没有删除权限的普通成员删除自己的评论 ⏳ 未测 这个环境只有所有者一个成员,没有普通成员账号。所有者删除自己的测试评论成功(提示「评论已删除」,回读 404),但这不算第 3 项

    前两项通过。第 3 项需要维护者用一个普通成员账号测,或者指定一个有普通成员的环境和账号。

  17. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

    生产登录实测(2026-12-04T00:59Z):维护者在本席桌面浏览器面板里登录生产(jack@objectstack.ai,所有者),本席在 jack.objectos.ai 的 HotCRM 客户记录上发了一条测试评论,测完已删除。

    # 验收项 结果 证据
    1 点 👍 再点一次 ✅ 通过 添加:POST /api/v1/data/sys_comment_reaction → 201,显示「👍 1」;再点:DELETE /api/v1/comments/reactions/<id> → 200,👍 消失,没有「表情回应未保存,请重试」提示;回读这条评论的回应数为 0
    2 标记已解决,再取消 ✅ 通过 PUT /api/v1/comments/<id>/resolution → 200,回读 resolved=true;默认视图隐藏已解决评论,「显示全部评论」后点「恢复为未解决」→ 再一次 PUT …/resolution → 200,回读 resolved_at 为空
    3 没有删除权限的普通成员删除自己的评论 ⏳ 未测 这个环境只有所有者一个成员,没有普通成员账号。所有者删除自己的测试评论成功(提示「评论已删除」,回读 404),但这不算第 3 项

    前两项通过。第 3 项需要维护者用一个普通成员账号测,或者指定一个有普通成员的环境和账号。

  18. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

    维护者裁定关卡(2026-12-04T01:04Z):看过本卡 7397426365 的生产实测后,维护者说「前两项够了关卡」。取消表情回应、标记已解决和取消这两项在生产上已通过;第 3 项(没有删除权限的普通成员删除自己的评论)不再单独验收。摘标并关闭。

  19. removed
    pm:awaiting-maintainer
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions