Skip to content

fix(create-doc): preserve created docs when markdown import fails#243

Closed
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/create-doc-partial-success
Closed

fix(create-doc): preserve created docs when markdown import fails#243
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/create-doc-partial-success

Conversation

@Gujiassh
Copy link
Copy Markdown

Summary

  • return a structured partial-success payload when create_doc succeeds but addContentToDocFromMarkdown fails afterward
  • preserve the existing hard-failure behavior for true create failures and keep full success responses unchanged
  • add focused regressions for workspace/item markdown failures and a thrown append-mutation failure after document creation

Validation

  • cd packages/agent-toolkit && npx jest src/core/tools/platform-api-tools/create-doc-tool/create-doc-tool.test.ts --runInBand
  • cd packages/agent-toolkit && npx eslint src/core/tools/platform-api-tools/create-doc-tool/create-doc-tool.ts src/core/tools/platform-api-tools/create-doc-tool/create-doc-tool.test.ts --max-warnings=0
  • cd packages/agent-toolkit && yarn build

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@Gujiassh Gujiassh force-pushed the fix/create-doc-partial-success branch from a9e9461 to 0b6c2c0 Compare April 9, 2026 13:28
@Gujiassh
Copy link
Copy Markdown
Author

Closing this stale radar PR to keep the queue clean: it has been open for weeks without maintainer response, and I am not going to keep it in the active follow-up set without renewed upstream interest.

@Gujiassh Gujiassh closed this Apr 11, 2026
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