Skip to content

chore: Add shortcuts for scans, findings, and exports - #443

Merged
ianw-oai merged 2 commits into
mainfrom
codex/scan-history-shortcuts
Aug 15, 2026
Merged

chore: Add shortcuts for scans, findings, and exports#443
ianw-oai merged 2 commits into
mainfrom
codex/scan-history-shortcuts

Conversation

@ianw-oai

Copy link
Copy Markdown
Collaborator

Summary

Common scan commands required users to find and copy scan IDs or artifact paths before they could review, compare, rerun, or export results. The workbench already knows which scans belong to the current repository, so these extra steps were unnecessary.

  • Default findings to the current repository's open findings.
  • Default scans show, scans rerun, and export to the latest completed scan.
  • Default scans logs to the latest scan, including an active scan.
  • Compare the two latest completed scans when scans compare has no IDs.
  • Compare one supplied scan ID with the latest completed scan.
  • Use native workbench status filters and result limits, and preserve explicit scan IDs and directories.
  • Document the shortcuts and return clear errors when scan history is missing.

Verification

  • npx --offline --yes bun@1.3.14 test --timeout 30000 tests-ts/cli.test.ts tests-ts/cli-workbench.test.ts tests-ts/cli-export.test.ts tests-ts/workbench-scan-history.test.ts (164 passed)
  • node node_modules/typescript/bin/tsc --noEmit
  • node node_modules/prettier/bin/prettier.cjs --check src/cli.ts tests-ts/cli.test.ts tests-ts/cli-workbench.test.ts tests-ts/cli-export.test.ts README.md
  • node node_modules/typescript/bin/tsc -p tsconfig.build.json
  • Checked the built CLI against an isolated workbench database.

@ianw-oai
ianw-oai marked this pull request as ready for review August 15, 2026 04:45
@ianw-oai ianw-oai changed the title [codex] Add shortcuts for scans, findings, and exports chore: Add shortcuts for scans, findings, and exports Aug 15, 2026
kmbroai
kmbroai previously approved these changes Aug 15, 2026
…ortcuts

# Conflicts:
#	sdk/typescript/tests-ts/cli-workbench.test.ts
@ianw-oai
ianw-oai merged commit a7411bc into main Aug 15, 2026
33 checks passed
@ianw-oai
ianw-oai deleted the codex/scan-history-shortcuts branch August 15, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants