Skip to content

Keep API-made stories editable after an observation (#408) - #162

Merged
apedintensor merged 1 commit into
mainfrom
design/updatedat-fix
Oct 22, 2026
Merged

apedintensor merged 1 commit into
mainfrom
design/updatedat-fix

Conversation

@apedintensor

Copy link
Copy Markdown
Member

Opening Codex's #408 fixture on staging showed the toast '项目必须是普通 JSON 数据…': the missing-file observation copied an absent updatedAt as undefined, so all later edits failed validation (nothing was saved; fixture stayed at version 3). Fix + store regression test. Verified locally against staging: no toast, 9.0 s, fixture unchanged. npm test 871 pass.

🤖 Generated with Claude Code

An observation copied project.updatedAt even when the story had none (stories created
through the API), leaving an undefined field that made every later edit fail the
plain-JSON check ('项目必须是普通 JSON 数据…'). Found on Codex's #408 fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apedintensor
apedintensor merged commit 1ded396 into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant