Repository navigation
feat(vscode): add option to extend viewable sessions limit #14272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@kilocode/cli": patch | ||
| "kilo-code": patch | ||
| --- | ||
|
|
||
| Allow configuring how many recent sessions are shown in the history list, so you can tune the list length to match your workflow. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2419,7 +2419,14 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper | |
| connectionState: this.connectionState, | ||
| listSessions: client | ||
| ? (dir: string) => | ||
| client.session.list({ directory: dir, roots: true }, { throwOnError: true }).then(({ data }) => data) | ||
| client.session.list( | ||
| { | ||
| directory: dir, | ||
| roots: true, | ||
| limit: vscode.workspace.getConfiguration("kilo-code.new").get<number>("sessionsLimit", 100) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SUGGESTION: Consider bounding this value. Reply with |
||
| }, | ||
| { throwOnError: true } | ||
| ).then(({ data }) => data) | ||
| : null, | ||
| sessionDirectories: this.sessionDirectories, | ||
| worktreeDirectories: this.opts.worktreeDirectories, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.