Skip to content

编辑记录保存成功后,记录页约 3 秒内仍显示旧值 #33827

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_0b694aec78a6416c9b4b75ecd4ac7112

Filing gate: ① 用户可见的体验缺陷,reach: 界面实测一次。

来源

2026-11-15 staging 浏览器全量测试(cloud 部署 c4153027,objectstack pin 181ad7d4),环境 os-6hf1jq(Jack,免费版,HotCRM 6.1.2)。报告:https://claude.ai/artifact/XaMk7Uo36seWMKsPy5ETPM

复现

  1. HotCRM → 打开一条客户记录(整页)→ 编辑 → 电话填 021-55550100 → 更新。
  2. 出现「已更新」提示;保存后约 4 秒截图,「联系信息」区仍显示「显示 5 个空字段」,没有电话。
  3. 再过约 3 秒才显示电话,此时动态已记录「更新了 客户:电话」。服务端记录在保存时已是新值(GET /api/v1/data/crm_account/<id> 返回 phone: 021-55550100)。

业务理由

用户看到成功提示却看不到改动,会以为没保存而再编辑一次,或怀疑数据丢失。

修复方向

保存成功后用返回的记录立即更新页面(乐观更新或直接替换缓存),而不是等下一次重新取数。objectstack#30082 已在保存后刷新动态与计数,字段区没有一起刷新。

验收

  1. 保存成功提示出现时,字段区已显示新值。

Reader

objectstack console 车道(domain:ui),记录页保存后的缓存刷新。

Dedupe

  • repo:objectstack-ai/objectstack record page stale after save refresh → 271 条(含 closed);最近的 objectstack#30082(保存后刷新动态和计数)已关,不覆盖字段区。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · 2026-11-15T12:50Z

    ⛔ Not a claim.

    After a successful save, the record page shows the old values for about 3 s. Users think the save failed and re-edit, so p2.

  3. added
    pm:queue
    priority:p2
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 1 · 2026-11-15T14:17Z
    Session: session_01ADHkmNxp4Cc7UZwqZmMUei (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-7u49a5
    Worktree: objectstack-issue-33827
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: the full record page's save and record-cache path and its tests under ui/packages/** (app-shell record page / plugin-detail / react data hooks, as located), root .changeset/. The dev names the exact files in the report; a file outside these stops for the seat.
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: after a successful save the record page shows the old field values for ~3 s next to an "updated" toast, so users re-edit or suspect data loss | #30082 refreshes the activity feed and count after a save, not the fields | every Console user editing a record on the full record page
    Thread-read: 6894579069
    Premise: holds as filed from staging (pin 181ad7d4); the dev re-measures on origin/main 895783a1 before editing and stops with premise_still_valid: false if it no longer reproduces
    Serial constraints cleared: no domain:ui card carried pm:dispatched before this round; ui seat 2 holds #33830 (activity-feed formatting) and #33826 (palette recents) behind this card's file surface until this claim's files are named
    Scope: Fields show the saved record when the success toast appears (replace the cache with the save response, or invalidate and await before the toast), root cause not a timer; #30082's refresh stays; pin + ablation; real-browser check in the body. Fixes #33827. Order: /mnt/project-files/ui-seat1/standard-order.md + 33827-delta.md. Summons: the maintainer's 「开 skills spec ui devx 座位,任务多的可以考虑开多个座位。」 (this project, 2026-11-15T14:04Z).

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmNxp4Cc7UZwqZmMUei
    os-dev-report

    {
      "issue": 33827,
      "status": "done",
      "branch": "claude/project-thread-7u49a5",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33983",
      "head": "63f0286a",
      "session": "session_01ADHkmNxp4Cc7UZwqZmMUei",
      "premise_still_valid": true,
      "summary": "Root cause measured on examples/app-crm: the PATCH answer already carries the saved record, but RecordDetailView drew fields only from pageRecord, which only the post-save $expand re-read replaces; that read queues beside ~6 other post-save reads, so the old values stayed until it answered (2832 ms with reads held 2 s). The page now subscribes to the adapter's onMutation for an update of its record and lays the event's record over the held one (new applySavedRecordEcho: only an answer naming this record, omitted keys kept, an expanded relation kept when the answer names the same id, identity kept for an equal answer); the event fires before the write's promise resolves, so the value is on screen by the toast. The re-read and #30082's stream re-read are unchanged.",
      "tests": "63f0286a: pnpm --dir ui exec vitest run packages/app-shell/src/views/recordSaveEcho.test.ts packages/app-shell/src/views/RecordDetailView.timelineCount-28737.test.tsx -> Test Files 2 passed (2), Tests 19 passed (19) (9 existing #28737/#29878/#30035 pins + 3 new + 7 unit). Ablation via scripts/ablation-replace.mjs (anchor setPageRecord(applySavedRecordEcho...) 1 -> 0, replaced with void applySavedRecordEcho;) -> Tests 2 failed | 10 passed (12), both save pins red 'expected ... to contain Renamed', #30035 pins green; restored blob == HEAD, git diff HEAD empty; ui vitest resolves @object-ui/* to src, no build leg. Sweep at 92ea4dd8 (63f0286a only drops an explicit any): 242 test files naming RecordDetailView/recordPagePayload/recordSaveEcho under app-shell/src + apps/console/src -> 242 passed, 1961 tests passed. app-shell type-check (tsc --noEmit + tsconfig.test.json) after build of app-shell^... -> exit 0. eslint 4 files 0 errors. Real browser (CRM, Playwright, reads held): before 2832 ms value vs 573 ms toast; after page 711 ms value vs 713 ms toast; drawer value present at toast.",
      "gates": "dispatch-gates --commands on 63f0286a: 38 derived, 38 run, all exit 0 (each captured before any pipe); --ran: 38 accounted, 0 NOT-MEASURED (derived zero). ui check:new-line-citations: 0 new. CI check-runs on PR #33983: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — mcp__github__issue_read x3 (get #33827, get_comments #33827, get #30082), mcp__github__pull_request_read x1 (get #33983); no write tools",
      "api_writes": "2 — relay pr_create (POST pulls, PR #33983, assignee os-steve); this os-dev-report comment via post-stamped (POST issues/33827/comments). git push x2 not counted (not REST)",
      "files_changed": [
        "ui/packages/app-shell/src/views/RecordDetailView.tsx",
        "ui/packages/app-shell/src/views/recordSaveEcho.ts",
        "ui/packages/app-shell/src/views/recordSaveEcho.test.ts",
        "ui/packages/app-shell/src/views/RecordDetailView.timelineCount-28737.test.tsx",
        ".changeset/33827-record-page-save-answer.md"
      ],
      "line_budget": "+208 / -1 across 5 files (PR additions/deletions)",
      "deviations": [
        "Forced test edit: the shared harness's PATCH answer echoed id c1 for every write; it now echoes the id in the PATCH path (named in the PR body).",
        "Wider sweep ran at 92ea4dd8; the final commit 63f0286a only changes the new setter's parameter type any -> unknown; the two pin files and the ablation were re-run on 63f0286a.",
        "Test UI beyond the 242-file sweep is left to CI."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in PR acceptance notes, not filed: ~350 ms between the PATCH response and the adapter's mutation event / toast in the Playwright timeline (both move together; not a defect claimed)"
      ]
    }

    Stamped 2026-11-15T15:26Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed

    PR #33983 MERGED at 2026-11-15T16:31Z as b1811fdb7f through the merge queue; Fixes #33827 closed this card. Delivered: the record page and drawer draw a saved record's fields from the PATCH answer (applySavedRecordEcho), with no wait for the post-save re-read. Nothing remains on this card.

    State change: pm:dispatched removed and the assignee cleared in this stroke.

  8. removed
    pm:dispatched
    on Nov 15, 2026
  9. added a commit that references this issue on Nov 16, 2026
    b1811fd
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

    bugdomain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions