Skip to content

refactor(vscode): extract session handlers from KiloProvider#8826

Open
kilo-code-bot[bot] wants to merge 3 commits intomainfrom
extract-session-handler
Open

refactor(vscode): extract session handlers from KiloProvider#8826
kilo-code-bot[bot] wants to merge 3 commits intomainfrom
extract-session-handler

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot bot commented Apr 13, 2026

Summary

  • Extracts session CRUD, message send/command, abort, revert/unrevert, compact, and retry-with-backoff logic from KiloProvider.ts into kilo-provider/handlers/session-handler.ts
  • Reduces KiloProvider from 3327 to 2819 lines (508 lines removed), fixing the max-lines ESLint error
  • Follows the established handler extraction pattern using a SessionContext interface and sessionCtx getter

Extract session CRUD, message send/command, abort, revert/unrevert,
compact, and retry-with-backoff into a dedicated session-handler module.
Reduces KiloProvider from 3327 to 2819 lines, fixing the max-lines lint
error.
@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot bot commented Apr 13, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • packages/kilo-docs/source-links.md
  • packages/kilo-vscode/src/KiloProvider.ts
  • packages/kilo-vscode/src/kilo-provider/handlers/session-handler.ts
  • packages/kilo-vscode/tests/unit/agent-manager-arch.test.ts

Reviewed by gpt-5.4-20260305 · 564,199 tokens

kilo-code-bot bot added 2 commits April 13, 2026 08:42
…extraction

Point the handleLoadSessions arch test at the new session-handler module
and regenerate source-links.md.
Move loadMessagesAbort and retryControllers from module-scope variables
into the SessionContext interface so they remain per-KiloProvider instance.
Multiple providers (sidebar, editor tabs, Agent Manager) no longer
interfere with each other's abort controllers.
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