Skip to content

fix: dashboard auto-updates session metadata from GitHub PR state#353

Open
AgentWrapper wants to merge 22 commits intomainfrom
session/ao-10
Open

fix: dashboard auto-updates session metadata from GitHub PR state#353
AgentWrapper wants to merge 22 commits intomainfrom
session/ao-10

Conversation

@AgentWrapper
Copy link
Collaborator

When a PR is merged on GitHub, the dashboard now writes back the status change to the session metadata file. Also fixes stale cache TTL for rate-limited responses and adds stale data indicators in the UI.

Changes:

  • /api/sessions/[id] makes fresh API calls (no cache)
  • Rate-limited responses: 30s TTL (was 60min)
  • Successful responses: 5min TTL
  • Writes back merged/closed/approved state to metadata
  • Stale data badge in session detail page

- Single-session API endpoint makes fresh API calls (no cache)
- Rate-limited responses get short TTL (30s) vs successful (5min)
- Writes back merged/closed/approved PR state to metadata files
- Stale data indicator in session detail UI
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

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