GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — feat(tui): add session_list_limit for session picker by CasualDeveloper · Pull Request #6138 · anomalyco/opencode Conversation
|
| File | Description |
|---|---|
packages/sdk/openapi.json |
Adds message_limit field to the schema with integer constraints (1-10,000) and description |
packages/sdk/js/src/v2/gen/types.gen.ts |
Generated TypeScript types for the new message_limit config option |
packages/sdk/js/src/gen/types.gen.ts |
Generated TypeScript types with incorrect default value in documentation |
packages/opencode/src/config/config.ts |
Adds Zod schema validation for message_limit with proper constraints |
packages/opencode/src/cli/cmd/tui/context/sync.tsx |
Updates message loading to use configured limit with fallback to 100 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
f0fea03 to
0a0b93e
Compare
|
Fixed the inconsistent default value in the SDK types (was 500, now correctly 100). Thanks Copilot! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
0a0b93e to
9f54237
Compare
|
Fixed second hardcoded |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I have a working implementation ready - typechecks pass. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@CasualDeveloper I also want to see this feature. I've had a half-finished PR in my pocket for a while that addresses this (and also makes the length of I cordially invite you to steal anything you think might be useful from my unfinished PR: ariane-emory#43 The team may (or may not) conclude that this also resolves my original Issue on the topic, #4918. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
9f54237 to
c22ee69
Compare
|
@ariane-emory Thanks for linking your PR! I've incorporated |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ef4a090 to
4a4438c
Compare
|
Re-committed with valid GPG signature. PR ready. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4596a07 to
da1e0bc
Compare
872e100 to
1e84d56
Compare
|
Will continue rebasing on top of release tags as they're set. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1e84d56 to
0414034
Compare
325c7f5 to
8fc7ac0
Compare
c0282dc to
a566be1
Compare
bd214cc to
a7d1cc1
Compare
00637c0 to
71e0ba2
Compare
Adds an optional `session_list_limit` setting to `tui.json` (default 150) that caps how many root sessions the picker renders when not searching. Search still requests the existing server-limited result set and renders an empty pending state instead of falling back to the full synced list. The active session has priority inside capped lists; pinned session-switching entries are preserved when space remains, and remaining slots follow the picker's updated-time recency order.
|
Closing this PR in its current form. After re-reviewing the original goal and the newer session-dialog work in #31132, I no longer think this implementation is the right layer for the problem. This PR applies The better immediate fix is #31132: make the session dialog load root sessions directly and safely, without changing shared sync state. If a configurable picker size is still needed later, it should be implemented as a page size / query limit for the dialog-local root-session browse request, not as a client-side slice of synced sessions. Superseded by #31132. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[QUESTION] Configurable session picker limit (#6138)
There was an error while loading. Please reload this page.