Skip to content

revert: remove model rate-limit pause functionality (PR #367)#908

Open
harsh-batheja wants to merge 2 commits intomainfrom
revert/pr-367
Open

revert: remove model rate-limit pause functionality (PR #367)#908
harsh-batheja wants to merge 2 commits intomainfrom
revert/pr-367

Conversation

@harsh-batheja
Copy link
Copy Markdown
Collaborator

Summary

Reverts #367 — removes the model rate-limit pause feature.

  • Removes globalPause state management from session-manager.ts
  • Removes model rate-limit detection and pause/resume logic from lifecycle-manager.ts
  • Removes globalPause from the sessions API response
  • Removes the pause banner from Dashboard.tsx
  • Removes initialGlobalPause from useSessionEvents hook signature
  • Removes global-pause.ts and its tests
  • Reverts --keep-session stop command flag (added by fix: pause workers on model limits and stabilize session visibility #367) back to --purge-session only
  • Removes 6 globalPause-specific test cases from core and web test suites

Conflicts with the current codebase were resolved by removing only the #367-specific code while preserving all subsequent changes (SSE membership reconciliation, --all stop flag, running.json integration, SSEAttentionMap, connection status, etc.).

Test plan

  • All 570 core tests pass (pnpm --filter @composio/ao-core test)
  • Core typecheck passes (pnpm --filter @composio/ao-core typecheck)
  • Web typecheck passes (pre-existing unbuilt-plugin errors unrelated to this revert)

- Fix dangling import { in session-manager.ts (leftover from removing globalPause imports)
- Fix duplicate registerStop body in start.ts (leftover parent-version code after catch block)
- Remove --keep-session flag from stop command (was added by #367)
- Fix PullRequestsPage.tsx useSessionEvents call removing dropped initialGlobalPause arg
- Remove globalPause test cases from spawn.test.ts, communication.test.ts, api-routes.test.ts
- Remove unused updateMetadata imports from test files
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