Skip to content

Conversation

@JessyTsui
Copy link

@JessyTsui JessyTsui commented Jan 28, 2026

Related Issue

Issue: #765

Description

Persist approve_for_session across session resume by saving auto_approve_actions
in a session-scoped state file (e.g. approval_state.json) and loading it when a
session is restored. This keeps the safety scope limited to the same session while
removing repeated approvals.

Tests:

  • Added tests/core/test_approval_state.py to verify state persistence.
  • Ran: uv run pytest tests/core/test_approval_state.py

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue.
  • I have added tests that prove my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review

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