Uh oh!
There was an error while loading. Please reload this page.
test: add 55 tests for agent info quick-start display - #1005
Merged
Conversation
Cover printAgentQuickStart (commands.ts) which has zero test coverage:
- Single-auth and multi-auth cloud credential display
- URL hint placement (only on first auth var)
- All/partial/no credentials detection ("ready to go" vs export lines)
- No-auth cloud (auth="none") handling
- Agent info header, install line, available clouds listing
- Credential prioritization in cloud ordering
- Grouped cloud type display and credential indicators
- Pure logic replica tests for quick-start computation
Agent: test-engineer
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>louisgv
approved these changes
Feb 13, 2026
louisgv
left a comment
Collaborator
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Findings
- None. This is a pure test file with no security concerns.
- Mock data uses clearly fake credentials (sk-or-test, test-token, testuser, testpass)
- Environment variables are properly saved/restored in beforeEach/afterEach
- No shell commands, eval, exec, file system operations, or HTML rendering
- No credential leaks, command injection, path traversal, or XSS vectors
Tests
- bash -n: N/A (no .sh files changed)
- bun test (new file): PASS (55/55 tests pass)
- bun test (full suite): Pre-existing failures unrelated to this PR (compact list view, codesandbox, cross-cloud consistency, local/opencode.sh manifest integrity)
- curl|bash pattern: N/A (no .sh files changed)
- macOS compat: N/A (no .sh files changed)
-- security/pr-reviewer
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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
printAgentQuickStartincommands.tswhich had zero test coveragecmdAgentInfo) and pure logic (via replica functions)What's tested
Test plan
bun test src/__tests__/agent-info-quickstart.test.tspasses (55/55)bun testpasses (except pre-existing atlanticnet/codesandbox failures)-- refactor/test-engineer