Skip to content

Conversation

@Pterjudin
Copy link

…ation

Performance optimizations:

  • Update plan cache in place instead of invalidating (reduces lookups by 3-5x)
  • Return step info from operations to avoid redundant re-lookups
  • Use cached plans first before forcing refresh
  • Eliminate redundant cache invalidations
  • Batch state updates using returned values

Bug fixes:

  • Fix OpenAI tool message validation: check last message in newMessages array
  • Fix multiple tool calls from same assistant message (append instead of overwrite)
  • Skip orphaned tool messages with warning to prevent API errors

Expected performance: 3-5x faster step transitions (from ~50-100ms to ~10-20ms)

Tajudeen added 2 commits January 11, 2026 00:01
…ation

Performance optimizations:
- Update plan cache in place instead of invalidating (reduces lookups by 3-5x)
- Return step info from operations to avoid redundant re-lookups
- Use cached plans first before forcing refresh
- Eliminate redundant cache invalidations
- Batch state updates using returned values

Bug fixes:
- Fix OpenAI tool message validation: check last message in newMessages array
- Fix multiple tool calls from same assistant message (append instead of overwrite)
- Skip orphaned tool messages with warning to prevent API errors

Expected performance: 3-5x faster step transitions (from ~50-100ms to ~10-20ms)
@Pterjudin Pterjudin merged commit 975816a into main Jan 11, 2026
5 of 15 checks passed
@Pterjudin Pterjudin deleted the feature/cursor-tools-integration branch January 11, 2026 00:07
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.

2 participants