Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
priority/p2-mediumPriority P2: standard workscope/cliCore CLI framework, Typer subcommands, options, and tablestype/featureType feature: a new function
Description
Context & Rationale
High-velocity keyboard workflow allowing developers to execute any DevOps CLI command without exiting the TUI.
Scope & Deliverables
- Context & Rationale*: High-velocity keyboard workflow allowing developers to execute any DevOps CLI command without exiting the TUI.
- Modal Launcher (
Ctrl+P/:)*: Fast fuzzy-search command palette listing all CLI subcommands (ci run,scan trivy,release status,argo sync,vault sync,sandbox iterate). - Non-Blocking Command Output Drawer*: Executes commands in a non-blocking background thread, streaming output directly into an ephemeral sliding terminal drawer.
Folded in from #685's refinement: a p key that runs pr check-readiness on the inspected PR
Refining #685 (the dashboard's GitHub tab) cut its p key, which runs devops pr check-readiness on the PR in the tab's inspector. The key is this item's command runner bound to one command, so it is recorded here and doesn't become a second runner.
Facts the runner must account for (checked on main, 2026-10-01):
- There is no
python -m devops_clientry point. The console script isdevops_cli.entry:main(pyproject.toml:59-60), and it readssys.argvwhen called with no arguments (entry.py:16-19). - A command can't run in-process. The MCP dispatcher uses Click's
CliRunner(ai/mcp/dispatcher.py:228-250), which replacessys.stdoutandsys.stderrfor the whole process while Textual owns the terminal. Every palette command therefore runs as a child process. run_subprocess(core/process.py:218) buffers output, and nothing incore/process.pystreams a child's output line by line. refactor(cli): one process runner owns execution, process groups and dry-run #775 makescore/processthe single owner of running tools, so the streaming helper belongs there.- The dashboard's Logs tab already streams any source of lines on a daemon thread (
ui/widgets.py:339-348,:365-376), so it can serve as the output drawer.
Deliverables to add
- A streaming helper in
core/process.py:- It starts
[sys.executable, "-c", "from devops_cli.entry import main; main()", <args...>], so the child uses the dashboard's own interpreter and install, not whicheverdevopsis on PATH. - It merges stdout and stderr, passes each line through
mask_secrets, and ends with the exit code. - It has a timeout:
DEFAULT_DASHBOARD_READINESS_TIMEOUT_SECONDS = 120(proposed), or one palette-wide default. - It stops the child when the timeout passes, when its output stream stops or is replaced, and when the app quits.
- It starts
- The
pbinding in feat(github): github tab in devops dashboard with an oldest-first pr queue, pr inspector, failing-log view and api quota (tab-github) #685's GitHub tab:- It runs
pr check-readiness <n> --repo <owner/repo>for the PR shown in the inspector, through the helper. - It never passes
--auto-resolve, so the tab writes nothing to GitHub. - With no PR in the inspector, it shows a notice and starts nothing.
- It runs
Acceptance criteria to add
- The
pchild's argument list is exactly the one above and never includes--auto-resolve. - The output view ends with the exit code.
- A stub child that outlives the timeout is stopped, and the output says so.
- Quitting the app stops a running stub child.
- With no PR in the inspector,
pstarts nothing. - Tests start no real child process.
Dependencies to add
- Only the
pbinding has these; the palette and runner don't wait on them. - feat(github): github tab in devops dashboard with an oldest-first pr queue, pr inspector, failing-log view and api quota (
tab-github) #685 provides the inspector. - fix(github): pr readiness passes when review threads can't be read #797 must land first. Until then,
check-readinessreports a failed review-thread read as zero threads (commands/pr.py:1456-1460), which contradicts the GitHub tab's fail-closed thread counts.
Proposed design
Problem statement
Developers need a fast, keyboard-driven command palette to execute any DevOps CLI command without leaving the TUI, improving workflow velocity and reducing context switching.
Acceptance criteria
- Criterion 1: A modal launcher is accessible via Ctrl+P or : keybindings that displays all CLI subcommands in a fuzzy-searchable list.
Verification: Pressing Ctrl+P or : opens the command palette modal showing subcommands like 'ci run', 'scan trivy', 'release status', etc. - Criterion 2: Commands execute in a non-blocking background thread and their output streams to an ephemeral sliding terminal drawer.
Verification: Executing any command from the palette shows output in a drawer that slides up without blocking the main TUI interface. - Criterion 3: The 'p' key binding in the GitHub tab runs 'pr check-readiness' on the inspected PR through the streaming helper.
Verification: With a PR inspector showing, pressing 'p' executes 'pr check-readiness --repo ' and displays output in the drawer. - Criterion 4: The command argument list for 'p' key is exactly as specified and never includes '--auto-resolve'.
Verification: Running 'p' key binding with a PR inspector generates process arguments matching exactly: ['pr', 'check-readiness', '', '--repo', ''] without --auto-resolve. - Criterion 5: The output view ends with the exit code of the executed command.
Verification: After command execution, the drawer output ends with the command's exit code in a format like 'Exit code: 0'.
Key questions
- What is the console script entry point for devops-cli?: The console script is 'devops_cli.entry:main' as defined in pyproject.toml lines 59-60, and it reads sys.argv when called with no arguments as per entry.py lines 16-19. [sources: pyproject.toml:59-60, src/devops_cli/entry.py:16-19]
- Can commands run in-process?: No, a command cannot run in-process because the MCP dispatcher uses Click's CliRunner which replaces sys.stdout and sys.stderr for the whole process while Textual owns the terminal. [sources: src/devops_cli/ai/mcp/dispatcher.py:228-250]
- How does output streaming work in core/process.py?: The run_subprocess function buffers output and nothing in core/process.py streams a child's output line by line. A streaming helper must be added to this module. [sources: src/devops_cli/core/process.py:218]
- What is the default timeout for dashboard readiness checks?: The proposed default is DEFAULT_DASHBOARD_READINESS_TIMEOUT_SECONDS = 120. (proposed) [sources: src/devops_cli/core/process.py:218]
Fit
Needs splitting into 2 items:
- A streaming helper in core/process.py that starts subprocesses using the dashboard's own interpreter
- The 'p' binding in GitHub tab for running pr check-readiness command
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
priority/p2-mediumPriority P2: standard workscope/cliCore CLI framework, Typer subcommands, options, and tablestype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Sep 30, 2026
Moved from v0.2.25 to v0.2.26. v0.2.25 is capped at 12 items (#740): it keeps #739-#742, their dependency #704, and the oldest P1 items. This P1 item is next in line.
dan-petty commentedon Oct 1, 2026
Moved from v0.2.26 to the backlog. After the v0.2.23 P1 leftovers were retargeted (they were committed earlier), v0.2.25 and v0.2.26 are full at 12 items each, and the roadmap-service items placed in v0.2.26 stay. It is next in line for a planned release.
dan-petty commentedon Oct 2, 2026
Grooming (2026-10-02): Priority p1-high → p2-medium, by the owner's decision. This is a feature with no defect behind it, and it is still a one-paragraph description with no acceptance criteria. That matches #685, the refined sibling tab, which is already P2. It stays in the backlog until it is refined.
dan-petty commentedon Oct 18, 2026
Proposal needs splitting into 2 items at 25e2cda (see proposed design in issue body).
dan-petty commentedon Oct 25, 2026
The project cannot build issue 694 as written. Acceptance criteria 3 and 4 require a GitHub tab and a pull request inspector in the dashboard. Commit 3c9ba76 removed the GitHub dashboard tab in issue 1883. The dashboard contains no GitHub tab and no pull request inspector. The repository owner also decided that this proposal requires a split into two separate items.
dan-petty commentedon Oct 25, 2026
Closed as not planned (rejected), 2026-10-25. The owner asked: "fix issue 694 or close as rejected".
Why this item is not built:
devops dashboardcovers only what no open tool covers. refactor(ui): audit five dashboard tabs against open tools #1885 audits the dashboard tabs for deletion.Ctrl+Ppalette: the dashboard already has the command palette of Textual onCtrl+P(ui/dashboard.py:182; Textual 8.2.8,App.ENABLE_COMMAND_PALETTEis true). It finds and runs the actions of the app.devopscommand with its output: the terminal runs it.devops --install-completioncompletes each command and option in the shell. A drawer that runs any command in the dashboard repeats the shell and needs a new streaming process runner incore/process.py, as this item says.pkey that runsdevops pr check-readiness: refactor(ui): delete the dashboard GitHub tab; gh-dash replaces it #1883 deleted the GitHub tab and its inspector (commit 3c9ba76). gh-dash replaces the tab, and.gh-dash.ymlalready runsdevops prcommands on the selected pull request from keys (wmonitor,Tchecks,Dthreads,ddiff). Another key is one more entry in that file, with no dashboard code.What stays open: nothing. If a gh-dash key for
devops pr check-readinessis wanted, file it as a change to.gh-dash.yml.