repl: update .scenario tab completion for group-qualified multi-API usage#1922
Merged
pmcelhaney merged 3 commits intomainfrom Apr 17, 2026
Merged
repl: update .scenario tab completion for group-qualified multi-API usage#1922pmcelhaney merged 3 commits intomainfrom
.scenario tab completion for group-qualified multi-API usage#1922pmcelhaney merged 3 commits intomainfrom
Conversation
5 tasks
Copilot
AI
changed the title
[WIP] Update REPL tab completion for group-qualified .scenario
repl: update Apr 16, 2026
.scenario tab completion for group-qualified multi-API usage
pmcelhaney
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors
.scenarioREPL completion to match group-qualified multi-API syntax while preserving single-API behavior. Multi-runner completion now resolves in two stages: group selection first, then group-scoped scenario path/function completion..scenario <Tab>(multi-API): suggests configured API groups.scenario <group> <Tab>: suggests scenario functions/path prefixes from that group’s scenario registry.scenario <path>completion logic is retainedOriginal Prompt
This section details on the original issue you should resolve
Issue title: repl: update tab completion for group-qualified .scenario
Issue description:
Update REPL tab completion so
.scenariocompletions reflect the new multi-API qualifier syntax while preserving the current single-API experience.Context
Current completion assumes
.scenario <path>. With multiple runners, users need completions for:.scenario.scenario <group>Proposed change
Refactor the
.scenariocompleter to operate in two stages for multi-runner mode and keep existing path/function completion for single-runner mode.Acceptance criteria
.scenariooffers available group keys.scenario <group>offers scenario path/function completions scoped to that group.scenario <path>completions are preservedManual acceptance tests
.scenariothen pressing Tab suggests scenario functions and path prefixes from the default scenario registry.scenariothen pressing Tab suggests configured API groups.scenario billingthen pressing Tab suggests only billing scenarios (and not scenarios from other groups).scenario billing pets/orders/pthen pressing Tab suggests nested scoped matches (for example,pets/orders/pending).scenario unknownthen pressing Tab does not crash and yields no completionsTasks
.scenariocompletion logic to support multi-API staged completion (group -> scenario path/function)createCompleterto accept grouped scenario registries for multi-runner completion routing.scenario.scenario <group>.scenariotab-completion behavior in single- vs multi-API sessions