Skip to content

Commit bedf65b

Browse files
committed
fix: remove unusable nextCommand stub from promptEnvironmentSelection pagination
The nextCommand in promptEnvironmentSelection always included '--query' '' (an empty placeholder) with no --offset/--limit, making it a non-executable template rather than a concrete next-page command. This conflicted with the PaginationInfo.nextCommand semantics used in bin.ts, where nextCommand is only emitted when hasMore is true and includes concrete offset/limit values. Remove nextCommand entirely since all choices are already returned in this context (no additional pages to fetch).
1 parent ee4086e commit bedf65b

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/ui/agent-ui.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -930,21 +930,9 @@ export class AgentUI implements WizardUI {
930930
responseSchema: {
931931
appId: 'string (required, from choices[].value)',
932932
},
933-
// Pagination is signalled even when all choices fit so outer agents can
934-
// surface the total. `nextCommand` lets them re-fetch a search-filtered
935-
// subset via `wizard projects list --agent --query <q>`.
936933
pagination: {
937934
total: choices.length,
938935
returned: needsInputChoices.length,
939-
nextCommand: [
940-
'npx',
941-
'@amplitude/wizard',
942-
'projects',
943-
'list',
944-
'--agent',
945-
'--query',
946-
'',
947-
],
948936
},
949937
// Allow free-form `--app-id` entry when none of the listed choices fit
950938
// (e.g. a brand-new project the cached fetch missed).

0 commit comments

Comments
 (0)