Skip to content

Conversation

@AbdulrahmanAlGhofaily
Copy link
Contributor

Removed added edges from approval_node node to proceed and cancel. These edges are causing an error where the graph tries to update status channel at the same time (in node proceed and cancel) Also since we have approval_node already points to proceed and cancel, adding these edges is unnecessary.

Error message if the example compiled without any changes: InvalidUpdateError: At key 'status': Can receive only one value per step. Use an Annotated key to handle multiple values.

Overview

Updates the approve or reject example in LangGraph interrupts documentation.

Type of change

Fix bug

Type: [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other]

Related issues/PRs

  • GitHub issue:
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • [ x ] I have read the contributing guidelines
  • [ ] I have tested my changes locally using docs dev
  • [ ] All code examples have been tested and work correctly
  • [ ] I have used root relative paths for internal links
  • [ ] I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

Removed added edges from `approval_node` node to `proceed` and `cancel`.
These edges are causing an error where the graph tries to update `status` channel at the same time (in node `proceed` and `cancel`)
Also since we have `approval_node` already points to `proceed` and `cancel`, adding these edges is unnecessary.

Error message if the example compiled without any changes:
`InvalidUpdateError: At key 'status': Can receive only one value per step. Use an Annotated key to handle multiple values.`
@github-actions github-actions bot added langgraph For docs changes to LangGraph oss labels Nov 13, 2025
@lnhsingh lnhsingh merged commit 1f32654 into langchain-ai:main Nov 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langgraph For docs changes to LangGraph oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants