Skip to content

Docs: inputs.idrestoreFromStateId migration guide#5779

Merged
akaKuruma merged 3 commits into
mainfrom
tfreire/cor-170-inputs-id-to-restore-from-state-id-doc
May 12, 2026
Merged

Docs: inputs.idrestoreFromStateId migration guide#5779
akaKuruma merged 3 commits into
mainfrom
tfreire/cor-170-inputs-id-to-restore-from-state-id-doc

Conversation

@akaKuruma
Copy link
Copy Markdown
Contributor

@akaKuruma akaKuruma commented May 12, 2026

Summary

  • Add a new docs page at docs/en/guides/flows/inputs-id-deprecation.mdx that explains the deprecation of inputs.id as a @persist hydration mechanism and walks users through migrating to restoreFromStateId (available in CrewAI v1.14.5 and later).
  • Wire the page into docs.json next to mastering-flow-state in all 13 version blocks across all 4 languages (52 nav inserts).
  • Add translations for ar, ko, pt-BR

Note

Low Risk
Low risk docs-only change that adds new guide pages and updates navigation; no runtime or API behavior is modified.

Overview
Adds a new Flows migration guide explaining the deprecation of inputs.id hydration for @persist flows and how to switch to restore_from_state_id / AMP restoreFromStateId (v1.14.5+), including the resume-vs-fork semantics and AMP dashboard implications.

Wires the new page into docs.json navigation across all language/version blocks, and ships translated copies in ar, ko, and pt-BR alongside the English source.

Reviewed by Cursor Bugbot for commit c3d4187. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Documentation
    • Added migration guide deprecating hydrating flows via inputs.id; recommends using restore_from_state_id (v1.14.5+)
    • Clarifies resume vs. branch semantics, migration steps, and removal timeline
    • Includes SDK and AMP/REST payload examples and observable AMP behaviors when reusing inputs.id
    • Guide published in English, Portuguese, Arabic, and Korean with support contact info

Review Change Stack

@akaKuruma akaKuruma marked this pull request as draft May 12, 2026 14:42
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 12, 2026

📝 Walkthrough

Walkthrough

This PR adds multilingual documentation guiding users to migrate @persist flow hydration from the deprecated inputs.id field to the supported restoreFromStateId field (available in CrewAI v1.14.5+), including SDK usage examples, AMP REST payload migration, removal timeline, and navigation updates across English, Portuguese-BR, Korean, and Arabic locales.

Changes

Documentation Migration for inputs.id Deprecation

Layer / File(s) Summary
Navigation configuration for new guide pages
docs/docs.json
Added inputs-id-deprecation page entry to navigation immediately after mastering-flow-state across repeated code-branch blocks for en, pt-BR, ko, and ar.
English migration guide — core reference
docs/en/guides/flows/inputs-id-deprecation.mdx
New English MDX with frontmatter, deprecation warning, migration steps replacing inputs={"id": ...} with restore_from_state_id, resume vs fork semantics, rationale for splitting the UUID responsibilities, AMP REST migration examples, observable AMP symptoms, removal timeline, and support CTA.
Localized migration guides — Portuguese, Korean, Arabic
docs/pt-BR/guides/flows/inputs-id-deprecation.mdx, docs/ko/guides/flows/inputs-id-deprecation.mdx, docs/ar/guides/flows/inputs-id-deprecation.mdx
Translated guides mirroring the English content: frontmatter, deprecation warning, SDK & AMP migration examples, explanation of semantics, AMP-specific guidance, removal schedule, and support card.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

documentation

Suggested reviewers

  • greysonlalonde

Poem

🐰 A UUID hid in inputs, doing two jobs at once,
Choosing snapshots and becoming the new run's nonce.
We split the hats — restoreFromStateId takes the crown,
Hydrate the past, let each kickoff stand its own.
Hop to v1.14.5 — migration makes the system bounce.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding documentation for migrating from inputs.id to restoreFromStateId, which is the primary objective of this documentation-focused pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tfreire/cor-170-inputs-id-to-restore-from-state-id-doc

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@crewAIInc crewAIInc deleted a comment from linear Bot May 12, 2026
@akaKuruma akaKuruma changed the title [DOC] Inputs id to restore from state id doc Docs:inputs.idrestoreFromStateId migration guide May 12, 2026
@akaKuruma akaKuruma changed the title Docs:inputs.idrestoreFromStateId migration guide Docs: inputs.idrestoreFromStateId migration guide May 12, 2026
@akaKuruma akaKuruma marked this pull request as ready for review May 12, 2026 15:13
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/en/guides/flows/inputs-id-deprecation.mdx (1)

79-82: ⚡ Quick win

Clarify SDK vs REST naming to prevent copy/paste misuse

This sentence can mislead Python users into passing restoreFromStateId to flow.kickoff(...). Please add an explicit note here that SDK uses restore_from_state_id and REST payload uses restoreFromStateId.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/en/guides/flows/inputs-id-deprecation.mdx` around lines 79 - 82, Clarify
that the deprecation note refers to differing parameter names between SDK and
REST to avoid copy/paste errors: explicitly state that the REST payload uses
restoreFromStateId (camelCase) while the SDK method uses restore_from_state_id
(snake_case), and warn Python users not to pass restoreFromStateId into
flow.kickoff(...) but to use restore_from_state_id instead; reference the
existing symbols inputs.id, `@persist`, restoreFromStateId, restore_from_state_id,
and flow.kickoff(...) so the edit is placed alongside the deprecation paragraph.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/pt-BR/guides/flows/inputs-id-deprecation.mdx`:
- Line 53: Update the section heading text to read as a question by adding a
trailing question mark and ensure the inline code spans remain backticked;
specifically change the heading "## Por que estamos descontinuando `inputs.id`
para `@persist`" to "## Por que estamos descontinuando `inputs.id` para
`@persist`?" so it reads clearly as a PT-BR question.

---

Nitpick comments:
In `@docs/en/guides/flows/inputs-id-deprecation.mdx`:
- Around line 79-82: Clarify that the deprecation note refers to differing
parameter names between SDK and REST to avoid copy/paste errors: explicitly
state that the REST payload uses restoreFromStateId (camelCase) while the SDK
method uses restore_from_state_id (snake_case), and warn Python users not to
pass restoreFromStateId into flow.kickoff(...) but to use restore_from_state_id
instead; reference the existing symbols inputs.id, `@persist`, restoreFromStateId,
restore_from_state_id, and flow.kickoff(...) so the edit is placed alongside the
deprecation paragraph.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 337b3afa-a7ec-44b7-9ba2-7830bf64b660

📥 Commits

Reviewing files that changed from the base of the PR and between ba523f4 and 10da3ad.

📒 Files selected for processing (5)
  • docs/ar/guides/flows/inputs-id-deprecation.mdx
  • docs/docs.json
  • docs/en/guides/flows/inputs-id-deprecation.mdx
  • docs/ko/guides/flows/inputs-id-deprecation.mdx
  • docs/pt-BR/guides/flows/inputs-id-deprecation.mdx

Comment thread docs/pt-BR/guides/flows/inputs-id-deprecation.mdx Outdated
akaKuruma added 3 commits May 12, 2026 13:36
  Add docs/en/guides/flows/inputs-id-deprecation.mdx covering the
  @persist inputs.id → restoreFromStateId migration for the SDK and the
  AMP REST kickoff payload. The page explains the dual role inputs.id
  plays today (hydration key + state.id), why that's the root cause of
  the AMP dashboard symptoms users see when inputs.id is reused (status
  flips, stacked OTel traces, collapsed executions list), and that
  restoreFromStateId is available in CrewAI v1.14.5+.

  Wire the page into all 13 version blocks under each of the 4 languages
  in docs.json. ar/ko/pt-BR translations will follow via devtools
  docs-check.
@akaKuruma akaKuruma force-pushed the tfreire/cor-170-inputs-id-to-restore-from-state-id-doc branch from 20ef1c5 to c3d4187 Compare May 12, 2026 16:36
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/ko/guides/flows/inputs-id-deprecation.mdx`:
- Around line 7-10: 문서 내에서 `inputs.id` 관련 문구들이 현재는 “지원되지 않음”으로 혼용되어 혼란을 주므로, 모든
해당 문구(`inputs.id`, `@persist` 흐름 하이드레이트 관련 표현)를 일관되게 “더 이상 권장되지 않음(deprecated) —
지금부터 사용 중단 권고, 향후 릴리스에서 제거 예정”으로 바꿔 통일하고 대체 옵션인 `restore_from_state_id`(CrewAI
v1.14.5+) 사용과 업그레이드 후 적용된다는 점을 명확히 표시하도록 변경하세요; 파일의 세 곳(현재 지적된 세트: 처음과 중간, 끝
부분)에 있는 모든 문장을 동일한 “deprecated” 타임라인 문구로 통일하고 예시나 주석 없이 간결한 교체 문구를 적용하면 됩니다.

In `@docs/pt-BR/guides/flows/inputs-id-deprecation.mdx`:
- Around line 43-47: Padronize o termo usado para a semântica de fork: na
descrição que menciona `restore_from_state_id=<uuid>` substitua “dividir” por
“criar um fork” (ou vice‑versa se preferir outro termo PT‑BR consistente) e
ajuste a frase “criar um fork” mais abaixo para usar exatamente o mesmo termo,
garantindo consistência entre ambas as ocorrências.
🪄 Autofix (Beta)

❌ Autofix failed (check again to retry)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 78dfdc03-4bf5-4dc0-9ff5-17e4494d6362

📥 Commits

Reviewing files that changed from the base of the PR and between 20ef1c5 and c3d4187.

📒 Files selected for processing (5)
  • docs/ar/guides/flows/inputs-id-deprecation.mdx
  • docs/docs.json
  • docs/en/guides/flows/inputs-id-deprecation.mdx
  • docs/ko/guides/flows/inputs-id-deprecation.mdx
  • docs/pt-BR/guides/flows/inputs-id-deprecation.mdx
✅ Files skipped from review due to trivial changes (1)
  • docs/docs.json

Comment thread docs/ko/guides/flows/inputs-id-deprecation.mdx
Comment thread docs/pt-BR/guides/flows/inputs-id-deprecation.mdx
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 12, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found.

@akaKuruma akaKuruma merged commit 3d95afc into main May 12, 2026
58 checks passed
@akaKuruma akaKuruma deleted the tfreire/cor-170-inputs-id-to-restore-from-state-id-doc branch May 12, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants