Fix tests of App.ts by jackalcooper · Pull Request #44 · gen-cli/gen-cli · GitHub
Skip to content

Fix tests of App.ts#44

Merged
jackalcooper merged 1 commit into
mainfrom
fix-gemini-ci
Jul 26, 2025
Merged

Fix tests of App.ts#44
jackalcooper merged 1 commit into
mainfrom
fix-gemini-ci

Conversation

@jackalcooper

@jackalcooper jackalcooper commented Jul 26, 2025

Copy link
Copy Markdown
Collaborator

TLDR

Dive Deeper

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

Summary by CodeRabbit

  • New Features
    • The endpoint display is now shown only when specific conditions are met, resulting in a cleaner interface for users in certain scenarios.

@coderabbitai

coderabbitai Bot commented Jul 26, 2025

Copy link
Copy Markdown

Walkthrough

The EndpointDisplay React component was updated to conditionally render its content based on the isSiliconFlow() function. An import for isSiliconFlow was added, and the component now returns nothing if isSiliconFlow() is false. No changes were made to the component's exported signature.

Changes

File(s) Change Summary
packages/cli/src/ui/components/EndpointDisplay.tsx Added conditional rendering using isSiliconFlow(). Imported isSiliconFlow. No change to export signature.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny peeked at code today,
And saw a flow that leads the way.
If silicon is in the air,
The endpoint shows up, fair and square.
If not, it hops and hides from view—
A clever change, both neat and new! 🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: /.npm/_logs/2025-07-26T04_04_49_297Z-debug-0.log

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-gemini-ci

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 574c1d3 and e320d5b.

📒 Files selected for processing (1)
  • packages/cli/src/ui/components/EndpointDisplay.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit Inference Engine (GEMINI.md)

**/*.{ts,tsx,js,jsx}: Prioritize the use of plain JavaScript objects with accompanying TypeScript interface or type declarations over JavaScript class syntax.
Leverage ES module syntax (import/export) for encapsulating private and public APIs instead of Java-esque private/public class members.
Leverage JavaScript's array operators (.map(), .filter(), .reduce(), .slice(), .sort(), etc.) for transforming and manipulating data collections.

Files:

  • packages/cli/src/ui/components/EndpointDisplay.tsx
**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (GEMINI.md)

**/*.{ts,tsx}: Avoid the any type and type assertions in TypeScript; prefer unknown when the type cannot be determined at compile time.
Use type assertions (as Type) sparingly and with caution in TypeScript.

Files:

  • packages/cli/src/ui/components/EndpointDisplay.tsx
**/*.tsx

📄 CodeRabbit Inference Engine (GEMINI.md)

**/*.tsx: Use functional components with Hooks in React; do not generate class components or use old lifecycle methods.
Keep React components pure and side-effect-free during rendering; perform side effects only in useEffect or event handlers.
Respect one-way data flow in React: pass data down through props and avoid global mutations. Use state lifting or React Context for shared state.
Never mutate state directly in React; always update state immutably using state setters.
Use useEffect and other effect Hooks accurately: only for synchronization, include all necessary dependencies, and avoid suppressing ESLint rules.
Follow the Rules of Hooks: call Hooks unconditionally at the top level of React function components or other Hooks.
Use refs (useRef) only when necessary in React, and never read/write ref.current during rendering except for initial setup.
Prefer composition and small components in React; break down UI into reusable components and abstract repetitive logic into custom Hooks.
Optimize React components for concurrency: avoid side effects in the component body, use functional state updates, and always include cleanup functions in effects.
Optimize to reduce network waterfalls in React: use parallel data fetching, leverage Suspense, and co-locate data requests with components.
Do not use useMemo, useCallback, or React.memo for premature optimization if React Compiler is enabled; focus on clear, simple components.
Design React components for a good user experience: provide clear, minimal, and non-blocking UI states, handle errors gracefully, and use Suspense for loading states.

Files:

  • packages/cli/src/ui/components/EndpointDisplay.tsx
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: gen-cli/gen-cli#0
File: GEMINI.md:0-0
Timestamp: 2025-07-21T02:39:38.782Z
Learning: Before submitting any changes, run the full preflight check using `npm run preflight` to build the repository, run all tests, check for type errors, and lint the code.
packages/cli/src/ui/components/EndpointDisplay.tsx (4)

Learnt from: CR
PR: gen-cli/gen-cli#0
File: GEMINI.md:0-0
Timestamp: 2025-07-21T02:39:38.782Z
Learning: Applies to **/*.tsx : Optimize React components for concurrency: avoid side effects in the component body, use functional state updates, and always include cleanup functions in effects.

Learnt from: CR
PR: gen-cli/gen-cli#0
File: GEMINI.md:0-0
Timestamp: 2025-07-21T02:39:38.782Z
Learning: Applies to **/*.tsx : Optimize to reduce network waterfalls in React: use parallel data fetching, leverage Suspense, and co-locate data requests with components.

Learnt from: CR
PR: gen-cli/gen-cli#0
File: GEMINI.md:0-0
Timestamp: 2025-07-21T02:39:38.782Z
Learning: Applies to **/*.test.tsx : For React component testing (CLI UI - Ink), use render() from ink-testing-library, assert output with lastFrame(), wrap components in necessary Context.Providers, and mock custom hooks and complex child components using vi.mock().

Learnt from: CR
PR: gen-cli/gen-cli#0
File: GEMINI.md:0-0
Timestamp: 2025-07-21T02:39:38.782Z
Learning: Applies to **/*.tsx : Design React components for a good user experience: provide clear, minimal, and non-blocking UI states, handle errors gracefully, and use Suspense for loading states.

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: Test (windows-latest, 24.x)
  • GitHub Check: Test (windows-latest, 22.x)
  • GitHub Check: Test (windows-latest, 20.x)
  • GitHub Check: Test (macos-latest, 22.x)
  • GitHub Check: Test (ubuntu-latest, 24.x)
  • GitHub Check: Test (macos-latest, 20.x)
  • GitHub Check: Test (macos-latest, 24.x)
  • GitHub Check: Test (ubuntu-latest, 22.x)
  • GitHub Check: Test (ubuntu-latest, 20.x)
  • GitHub Check: CodeQL
🔇 Additional comments (1)
packages/cli/src/ui/components/EndpointDisplay.tsx (1)

3-3: LGTM: Clean import following ES module syntax.

The import follows the coding guidelines for ES module syntax and imports only the specific function needed.

Comment on lines +9 to +14
export const EndpointDisplay: React.FC<EndpointDisplayProps> = ({ baseURL }) =>
isSiliconFlow() ? (
<Box>
<Text>{baseURL}</Text>
</Box>
) : null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Clean conditional rendering implementation, but verify alignment with PR objectives.

The conditional rendering follows React best practices:

  • Uses ternary operator for clean logic
  • Returns null to render nothing (standard React pattern)
  • Maintains component purity with no side effects during rendering
  • Follows coding guidelines for functional components

However, this appears to be a feature change rather than a test fix. Please verify that this change actually addresses the "Fix tests of App.ts" objective mentioned in the PR title.


🏁 Script executed:

#!/bin/bash
# Description: Search for test files and App.ts to understand the relationship between this change and test fixes
echo "=== Searching for App.ts files ==="
fd -t f "App.ts"

echo -e "\n=== Searching for test files related to EndpointDisplay ==="
fd -t f -e test.ts -e test.tsx -e spec.ts -e spec.tsx | head -10

echo -e "\n=== Searching for isSiliconFlow usage in tests ==="
rg -A 3 -B 3 "isSiliconFlow" --type ts --type tsx

echo -e "\n=== Searching for EndpointDisplay usage in tests ==="
rg -A 3 -B 3 "EndpointDisplay" --type ts --type tsx

Length of output: 1163


#!/bin/bash
echo "=== Searching for isSiliconFlow usage globally ==="
rg -n "isSiliconFlow" .

echo -e "\n=== Searching for EndpointDisplay usage globally ==="
rg -n "EndpointDisplay" .

echo -e "\n=== Checking App.tsx for EndpointDisplay usage ==="
rg -n "EndpointDisplay" packages/cli/src/ui/App.tsx || echo "No usage found"

Align PR scope or tests with EndpointDisplay change

The new EndpointDisplay component implementation is correct and follows React best practices:

  • Uses a clean ternary operator for conditional rendering
  • Returns null to render nothing when appropriate
  • Remains pure with no side effects in the render path

However, a search for isSiliconFlow and EndpointDisplay across test files (including App.tsx and all .test.tsx/.test.ts files) shows no existing tests reference this logic. It appears unrelated to the stated PR goal of “Fix tests of App.tsx.”

Please address this by either:

  • Updating the PR title/description to reflect this functional change; or
  • Adding or adjusting tests to cover EndpointDisplay behavior if test fixes are intended here.
🤖 Prompt for AI Agents
In packages/cli/src/ui/components/EndpointDisplay.tsx around lines 9 to 14, the
EndpointDisplay component's conditional rendering based on isSiliconFlow lacks
corresponding tests, which is inconsistent with the PR's stated goal of fixing
App.tsx tests. To fix this, either update the PR title and description to
include the addition of this new component or add new test cases that verify
EndpointDisplay's rendering behavior when isSiliconFlow returns true or false,
ensuring the component's logic is properly covered.

@github-actions

Copy link
Copy Markdown

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 71.85% 71.85% 79.38% 80.35%
Core 70.13% 70.13% 73.03% 81.49%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   71.85 |    80.35 |   79.38 |   71.85 |                   
 src               |   51.92 |     67.3 |      60 |   51.92 |                   
  gemini.tsx       |   25.09 |    33.33 |   33.33 |   25.09 | ...59-272,284-340 
  ...ractiveCli.ts |   91.36 |    67.85 |     100 |   91.36 | ...43,146,169-170 
  ...ActiveAuth.ts |     100 |      100 |     100 |     100 |                   
 src/acp           |    1.73 |        0 |       0 |    1.73 |                   
  acp.ts           |    2.79 |        0 |       0 |    2.79 | ...98-225,228-271 
  acpPeer.ts       |     1.4 |        0 |       0 |     1.4 | 33-48,51-674      
 src/config        |   87.98 |    81.28 |   83.87 |   87.98 |                   
  auth.ts          |   85.71 |    94.11 |     100 |   85.71 | 20-24             
  config.ts        |   97.34 |    87.09 |    62.5 |   97.34 | ...35,285,436-440 
  extension.ts     |   81.96 |    84.37 |     100 |   81.96 | ...97-101,110-111 
  sandboxConfig.ts |   54.05 |       50 |   66.66 |   54.05 | ...43,53-69,74-91 
  settings.ts      |   87.22 |    79.72 |   92.85 |   87.22 | ...62-363,403-404 
 src/generated     |     100 |      100 |     100 |     100 |                   
  git-commit.ts    |     100 |      100 |     100 |     100 |                   
 src/patches       |       0 |        0 |       0 |       0 |                   
  is-in-ci.ts      |       0 |        0 |       0 |       0 | 1-17              
 src/services      |   56.01 |    84.44 |   70.58 |   56.01 |                   
  ...mandLoader.ts |     100 |      100 |     100 |     100 |                   
  ...andService.ts |     100 |      100 |     100 |     100 |                   
  ...mandLoader.ts |    90.2 |    88.46 |     100 |    90.2 | 130-135,193-200   
  ...omptLoader.ts |    9.39 |    57.14 |   33.33 |    9.39 | ...44-167,173-230 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...mpt-processors |     100 |      100 |     100 |     100 |                   
  ...tProcessor.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/test-utils    |     100 |      100 |     100 |     100 |                   
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
 src/ui            |   60.49 |    67.39 |      68 |   60.49 |                   
  App.tsx          |   57.31 |    60.52 |      50 |   57.31 | ...-979,1004-1033 
  colors.ts        |   87.75 |      100 |      80 |   87.75 | 12-13,18-19,48-49 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/commands   |   91.43 |    86.29 |      95 |   91.43 |                   
  aboutCommand.ts  |     100 |    55.55 |     100 |     100 | 23-30             
  authCommand.ts   |     100 |      100 |     100 |     100 |                   
  bugCommand.ts    |   78.46 |    42.85 |     100 |   78.46 | 32-35,72-81       
  chatCommand.ts   |    92.3 |    81.57 |     100 |    92.3 | ...83-184,186-187 
  clearCommand.ts  |     100 |      100 |     100 |     100 |                   
  ...essCommand.ts |     100 |    88.88 |     100 |     100 | 69                
  copyCommand.ts   |     100 |      100 |     100 |     100 |                   
  corgiCommand.ts  |     100 |      100 |     100 |     100 |                   
  docsCommand.ts   |     100 |      100 |     100 |     100 |                   
  editorCommand.ts |     100 |      100 |     100 |     100 |                   
  ...onsCommand.ts |     100 |      100 |     100 |     100 |                   
  helpCommand.ts   |     100 |      100 |     100 |     100 |                   
  ideCommand.ts    |   99.27 |       90 |     100 |   99.27 | 27                
  mcpCommand.ts    |   82.53 |    82.75 |   83.33 |   82.53 | ...83-384,434-441 
  memoryCommand.ts |     100 |      100 |     100 |     100 |                   
  ...acyCommand.ts |     100 |      100 |     100 |     100 |                   
  quitCommand.ts   |     100 |      100 |     100 |     100 |                   
  ...oreCommand.ts |   93.79 |    91.42 |     100 |   93.79 | 54-55,84-89       
  statsCommand.ts  |   84.48 |       75 |     100 |   84.48 | 24-32             
  themeCommand.ts  |     100 |      100 |     100 |     100 |                   
  toolsCommand.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
  vimCommand.ts    |   44.44 |      100 |       0 |   44.44 | 14-24             
 src/ui/components |   62.93 |    80.98 |   66.66 |   62.93 |                   
  AboutBox.tsx     |     100 |       50 |     100 |     100 | 102               
  AsciiArt.ts      |     100 |      100 |     100 |     100 |                   
  AuthDialog.tsx   |   88.51 |       90 |   66.66 |   88.51 | ...,76-81,110-117 
  ...nProgress.tsx |   15.78 |      100 |       0 |   15.78 | 17-57             
  ...Indicator.tsx |   15.15 |      100 |       0 |   15.15 | 17-47             
  ...ryDisplay.tsx |   89.47 |    33.33 |     100 |   89.47 | 20-21             
  ...ryDisplay.tsx |   91.02 |    92.85 |     100 |   91.02 | 73-78,98          
  ...esDisplay.tsx |   10.52 |      100 |       0 |   10.52 | 24-82             
  ...ngsDialog.tsx |    6.76 |      100 |       0 |    6.76 | 26-168            
  ...ntDisplay.tsx |    62.5 |       50 |     100 |    62.5 | 11-13             
  Footer.tsx       |   72.72 |    18.18 |     100 |   72.72 | ...,84-87,105-112 
  ...ngSpinner.tsx |      80 |    33.33 |     100 |      80 | 29,31-32          
  Header.tsx       |    17.5 |      100 |       0 |    17.5 | 22-62             
  Help.tsx         |    3.73 |      100 |       0 |    3.73 | 17-154            
  ...emDisplay.tsx |   68.65 |       50 |     100 |   68.65 | ...55-60,79-86,89 
  ...ilDisplay.tsx |   13.88 |      100 |       0 |   13.88 | 17-52             
  InputPrompt.tsx  |   84.72 |     82.4 |     100 |   84.72 | ...31-333,415-419 
  ...Indicator.tsx |     100 |      100 |     100 |     100 |                   
  ...geDisplay.tsx |   25.92 |      100 |       0 |   25.92 | 14-36             
  ...tsDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |   44.44 |      100 |       0 |   44.44 | 12-17             
  ...MoreLines.tsx |      60 |       25 |     100 |      60 | 24-27,33-40       
  StatsDisplay.tsx |   98.39 |    86.66 |     100 |   98.39 | 173-175           
  ...nsDisplay.tsx |   83.05 |    61.53 |     100 |   83.05 | 34-39,42-43,87-89 
  ThemeDialog.tsx  |    4.29 |      100 |       0 |    4.29 | 29-316            
  Tips.tsx         |      16 |      100 |       0 |      16 | 17-45             
  ...tsDisplay.tsx |     100 |     87.5 |     100 |     100 | 30-31             
  ...ification.tsx |   36.36 |      100 |       0 |   36.36 | 15-22             
 ...nents/messages |   61.55 |    80.34 |   52.63 |   61.55 |                   
  ...onMessage.tsx |   18.51 |      100 |       0 |   18.51 | 22-49             
  DiffRenderer.tsx |   96.18 |    81.92 |     100 |   96.18 | ...16-217,221,283 
  ErrorMessage.tsx |   22.22 |      100 |       0 |   22.22 | 16-31             
  ...niMessage.tsx |   18.51 |      100 |       0 |   18.51 | 20-43             
  ...geContent.tsx |   19.04 |      100 |       0 |   19.04 | 25-43             
  InfoMessage.tsx  |   22.22 |      100 |       0 |   22.22 | 16-31             
  ...onMessage.tsx |   38.91 |     62.5 |   33.33 |   38.91 | ...32-165,201-226 
  ...upMessage.tsx |   10.11 |      100 |       0 |   10.11 | 27-126            
  ToolMessage.tsx  |   87.76 |       80 |     100 |   87.76 | ...,91-95,169-171 
  UserMessage.tsx  |     100 |      100 |     100 |     100 |                   
  ...llMessage.tsx |   36.36 |      100 |       0 |   36.36 | 17-25             
 ...ponents/shared |    78.7 |    73.74 |   94.59 |    78.7 |                   
  MaxSizedBox.tsx  |   80.66 |    81.19 |   88.88 |   80.66 | ...08-509,614-615 
  ...tonSelect.tsx |   66.66 |    65.51 |     100 |   66.66 | ...15,119-155,224 
  text-buffer.ts   |    75.4 |    74.53 |   95.83 |    75.4 | ...1696-1699,1704 
  ...er-actions.ts |   86.39 |    65.76 |     100 |   86.39 | ...75-578,883-885 
 src/ui/contexts   |   86.95 |    78.57 |     100 |   86.95 |                   
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 46-47,59-61       
  ...onContext.tsx |   94.11 |      100 |     100 |   94.11 | 101-104           
  ...ngContext.tsx |   71.42 |       50 |     100 |   71.42 | 17-20             
  ...deContext.tsx |   76.08 |       50 |     100 |   76.08 | 46-47,51-58,76-77 
 src/ui/editors    |   93.87 |    85.71 |   66.66 |   93.87 |                   
  ...ngsManager.ts |   93.87 |    85.71 |   66.66 |   93.87 | 53,67-68          
 src/ui/hooks      |   76.72 |    81.01 |      80 |   76.72 |                   
  ...dProcessor.ts |   79.38 |    80.85 |     100 |   79.38 | ...39-442,453-469 
  ...dProcessor.ts |   95.52 |    69.23 |     100 |   95.52 | ...17-218,223-224 
  ...dProcessor.ts |   76.64 |     62.5 |     100 |   76.64 | ...27-331,335-343 
  ...uthCommand.ts |    7.46 |      100 |       0 |    7.46 | 18-92             
  ...tIndicator.ts |     100 |      100 |     100 |     100 |                   
  ...ketedPaste.ts |     100 |      100 |     100 |     100 |                   
  useCompletion.ts |   78.16 |    86.36 |      80 |   78.16 | ...61-574,599-600 
  ...leMessages.ts |   98.68 |       95 |     100 |   98.68 | 55                
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  useFocus.ts      |     100 |      100 |     100 |     100 |                   
  ...miniStream.ts |   69.48 |    71.01 |     100 |   69.48 | ...21-822,852-942 
  ...BranchName.ts |   91.66 |    84.61 |     100 |   91.66 | 57-63             
  ...oryManager.ts |   98.41 |    93.33 |     100 |   98.41 | 43                
  ...putHistory.ts |    92.5 |    85.71 |     100 |    92.5 | 62-63,71,93-95    
  useKeypress.ts   |     100 |      100 |     100 |     100 |                   
  ...gIndicator.ts |     100 |      100 |     100 |     100 |                   
  useLogger.ts     |      25 |      100 |       0 |      25 | 14-32             
  ...raseCycler.ts |    95.5 |       75 |     100 |    95.5 | ...66-167,185-187 
  ...cySettings.ts |     3.6 |      100 |       0 |     3.6 | 18-139            
  ...lScheduler.ts |   79.01 |    94.87 |     100 |   79.01 | ...00-203,293-303 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-7               
  ...ellHistory.ts |   91.95 |    79.16 |   83.33 |   91.95 | 35-37,48-49,94-95 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-75              
  ...tateAndRef.ts |   59.09 |      100 |     100 |   59.09 | 23-31             
  ...rminalSize.ts |   77.27 |      100 |      50 |   77.27 | 19-23             
  ...emeCommand.ts |   46.98 |       75 |     100 |   46.98 | ...4,70-71,77-100 
  useTimer.ts      |   88.09 |    85.71 |     100 |   88.09 | 44-45,51-53       
  vim.ts           |   81.35 |    75.22 |     100 |   81.35 | ...28,732-740,749 
 src/ui/privacy    |   13.77 |      100 |       0 |   13.77 |                   
  ...acyNotice.tsx |    9.58 |      100 |       0 |    9.58 | 20-113            
  ...acyNotice.tsx |    12.9 |      100 |       0 |    12.9 | 15-55             
  ...acyNotice.tsx |   10.81 |      100 |       0 |   10.81 | 15-58             
  ...acyNotice.tsx |   30.76 |      100 |       0 |   30.76 | 19-36,39-41       
 src/ui/themes     |   99.61 |    92.13 |     100 |   99.61 |                   
  ansi-light.ts    |     100 |      100 |     100 |     100 |                   
  ansi.ts          |     100 |      100 |     100 |     100 |                   
  atom-one-dark.ts |     100 |      100 |     100 |     100 |                   
  ayu-light.ts     |     100 |      100 |     100 |     100 |                   
  ayu.ts           |     100 |      100 |     100 |     100 |                   
  color-utils.ts   |     100 |      100 |     100 |     100 |                   
  default-light.ts |     100 |      100 |     100 |     100 |                   
  default.ts       |     100 |      100 |     100 |     100 |                   
  dracula.ts       |     100 |      100 |     100 |     100 |                   
  github-dark.ts   |     100 |      100 |     100 |     100 |                   
  github-light.ts  |     100 |      100 |     100 |     100 |                   
  googlecode.ts    |     100 |      100 |     100 |     100 |                   
  no-color.ts      |     100 |      100 |     100 |     100 |                   
  ...-of-purple.ts |     100 |      100 |     100 |     100 |                   
  theme-manager.ts |    93.5 |    82.92 |     100 |    93.5 | ...82,186,211-212 
  theme.ts         |     100 |      100 |     100 |     100 |                   
  xcode.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/utils      |   76.36 |    87.41 |   96.22 |   76.36 |                   
  ...Colorizer.tsx |    77.3 |    77.77 |     100 |    77.3 | ...48-151,185-209 
  ...olePatcher.ts |   82.92 |       75 |   83.33 |   82.92 | 35-39,50-51       
  ...nRenderer.tsx |   26.51 |       75 |     100 |   26.51 | 32-137            
  ...wnDisplay.tsx |   86.19 |    87.69 |     100 |   86.19 | ...71-279,311-332 
  ...eRenderer.tsx |   78.09 |    76.19 |     100 |   78.09 | 55-83             
  ...boardUtils.ts |   32.25 |     37.5 |     100 |   32.25 | ...55-114,129-145 
  commandUtils.ts  |   96.36 |    90.47 |     100 |   96.36 | 68,72             
  computeStats.ts  |     100 |      100 |     100 |     100 |                   
  displayUtils.ts  |     100 |      100 |     100 |     100 |                   
  errorParsing.ts  |     100 |     92.5 |     100 |     100 | 74,78,84          
  formatters.ts    |   90.47 |    95.83 |     100 |   90.47 | 57-60             
  ...nUtilities.ts |   69.84 |    85.71 |     100 |   69.84 | 75-91,100-101     
  textUtils.ts     |   66.66 |      100 |      75 |   66.66 | 13-18             
  updateCheck.ts   |     100 |      100 |     100 |     100 |                   
 src/utils         |   12.04 |    85.18 |   63.63 |   12.04 |                   
  cleanup.ts       |      64 |    66.66 |   66.66 |      64 | 18-26,35          
  events.ts        |     100 |      100 |     100 |     100 |                   
  package.ts       |   88.88 |    85.71 |     100 |   88.88 | 33-34             
  readStdin.ts     |    3.44 |      100 |       0 |    3.44 | 7-39              
  sandbox.ts       |       0 |        0 |       0 |       0 | 1-879             
  ...upWarnings.ts |   23.07 |      100 |       0 |   23.07 | 14-40             
  ...upWarnings.ts |     100 |      100 |     100 |     100 |                   
  version.ts       |     100 |       50 |     100 |     100 | 11                
-------------------|---------|----------|---------|---------|-------------------
Core Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   70.13 |    81.49 |   73.03 |   70.13 |                   
 src               |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/__mocks__/fs  |     100 |      100 |     100 |     100 |                   
  promises.ts      |     100 |      100 |     100 |     100 |                   
 src/code_assist   |   69.88 |    73.52 |   71.05 |   69.88 |                   
  codeAssist.ts    |   18.51 |      100 |       0 |   18.51 | 13-35             
  converter.ts     |   89.06 |    96.15 |   81.81 |   89.06 | 176-180,199-209   
  oauth2.ts        |   75.23 |     61.7 |      80 |   75.23 | ...03-409,416-417 
  server.ts        |   46.75 |       80 |   53.84 |   46.75 | ...61-202,205-207 
  setup.ts         |   73.77 |     62.5 |     100 |   73.77 | 57-58,69-71,83-93 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/config        |   76.66 |    81.01 |   51.42 |   76.66 |                   
  config.ts        |   76.49 |       84 |   50.72 |   76.49 | ...15-622,628-629 
  models.ts        |   81.25 |       25 |     100 |   81.25 | 12,15,18          
 src/core          |   64.91 |    76.14 |      74 |   64.91 |                   
  client.ts        |   74.87 |    75.78 |   76.92 |   74.87 | ...18,720-721,724 
  ...tGenerator.ts |   84.69 |       75 |     100 |   84.69 | ...28,143,154-157 
  ...lScheduler.ts |   72.77 |    70.51 |   81.25 |   72.77 | ...68-674,691-700 
  geminiChat.ts    |   62.39 |       72 |   62.06 |   62.39 | ...13,628,632-640 
  geminiRequest.ts |     100 |      100 |     100 |     100 |                   
  logger.ts        |   81.85 |    77.14 |     100 |   81.85 | ...78-282,291-292 
  modelCheck.ts    |   23.52 |       50 |     100 |   23.52 | 31-75             
  ...olExecutor.ts |     100 |    66.66 |     100 |     100 | 64,99             
  ...tGenerator.ts |    1.75 |        0 |       0 |    1.75 | 20-55,58-416      
  prompts.ts       |   95.76 |    96.96 |      50 |   95.76 | 37-38,304-361     
  tokenLimits.ts   |      15 |      100 |       0 |      15 | 15-31             
  turn.ts          |   83.08 |    83.33 |     100 |   83.08 | ...50-253,266-267 
 src/ide           |   49.27 |       90 |      75 |   49.27 |                   
  ide-client.ts    |   14.63 |       50 |       0 |   14.63 | 31-109            
  ideContext.ts    |     100 |      100 |     100 |     100 |                   
 src/mcp           |   73.98 |    80.55 |   76.31 |   73.98 |                   
  ...h-provider.ts |   83.01 |      100 |   33.33 |   83.01 | ...69,73,77,81-82 
  ...h-provider.ts |   77.75 |    67.24 |      90 |   77.75 | ...14-616,621-623 
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  oauth-utils.ts   |   42.85 |     87.5 |      80 |   42.85 | ...32-192,216-252 
 src/prompts       |   23.25 |      100 |   16.66 |   23.25 |                   
  mcp-prompts.ts   |   18.18 |      100 |       0 |   18.18 | 11-19             
  ...t-registry.ts |      25 |      100 |      20 |      25 | ...35,41-42,48-55 
 src/services      |   94.05 |    94.61 |   86.48 |   94.05 |                   
  ...eryService.ts |   93.33 |    88.46 |   85.71 |   93.33 | 31,39,84,109-110  
  gitService.ts    |   77.52 |      100 |      60 |   77.52 | ...08-112,115-119 
  ...ionService.ts |   99.19 |    96.42 |     100 |   99.19 | 262-263           
  ...ionService.ts |   96.06 |    94.11 |     100 |   96.06 | 129-131,192-193   
 src/telemetry     |   67.71 |    84.09 |    75.4 |   67.71 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...-exporters.ts |   26.47 |        0 |       0 |   26.47 | ...80,83-84,87-88 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-62              
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-119             
  loggers.ts       |    76.1 |    79.16 |   81.81 |    76.1 | ...96-313,322-334 
  metrics.ts       |   60.36 |    95.65 |    62.5 |   60.36 | ...36-158,161-184 
  sdk.ts           |   76.72 |    28.57 |     100 |   76.72 | ...33,141-142,148 
  types.ts         |   84.42 |    97.87 |   89.47 |   84.42 | 83-92,162-191     
  uiTelemetry.ts   |   99.23 |       95 |     100 |   99.23 | 119               
 ...learcut-logger |   82.67 |    74.41 |   76.19 |   82.67 |                   
  ...cut-logger.ts |   82.45 |     73.8 |      80 |   82.45 | ...38-539,543-545 
  ...tadata-key.ts |   84.61 |      100 |       0 |   84.61 | 169-179           
 src/tools         |   59.79 |    78.39 |   66.43 |   59.79 |                   
  diffOptions.ts   |     100 |      100 |     100 |     100 |                   
  edit.ts          |   77.87 |    83.33 |      75 |   77.87 | ...54-455,459-494 
  glob.ts          |   85.29 |    80.95 |   83.33 |   85.29 | ...68-269,277-284 
  grep.ts          |   57.35 |     75.8 |   72.72 |   57.35 | ...32-537,542-546 
  ls.ts            |    8.61 |      100 |   14.28 |    8.61 | ...74-179,187-326 
  mcp-client.ts    |   25.18 |    68.75 |      25 |   25.18 | ...1058,1062-1065 
  mcp-tool.ts      |   84.92 |    88.46 |      90 |   84.92 | ...69,175,180-181 
  memoryTool.ts    |   97.46 |    84.84 |     100 |   97.46 | 94,96,98-99       
  ...iable-tool.ts |     100 |    84.61 |     100 |     100 | 90,97             
  read-file.ts     |   96.69 |    96.15 |   83.33 |   96.69 | 113-114,123-124   
  ...many-files.ts |   82.17 |    69.81 |      80 |   82.17 | ...90-491,498-499 
  shell.ts         |   81.37 |    71.21 |   85.71 |   81.37 | ...45-347,349-350 
  tool-registry.ts |   54.19 |    75.86 |      75 |   54.19 | ...55-360,444-445 
  tools.ts         |   75.47 |      100 |   33.33 |   75.47 | ...67-172,181-184 
  web-fetch.ts     |   31.06 |    68.42 |   66.66 |   31.06 | ...92-193,221-359 
  web-search.ts    |   26.72 |      100 |      40 |   26.72 | ...04-105,108-197 
  write-file.ts    |   81.45 |    83.67 |   77.77 |   81.45 | ...09-314,376-406 
 src/utils         |   82.05 |    85.17 |   86.95 |   82.05 |                   
  LruCache.ts      |   70.96 |     62.5 |     100 |   70.96 | 20-22,28,30-34    
  bfsFileSearch.ts |   93.22 |    88.23 |     100 |   93.22 | 54-55,68-69       
  browser.ts       |    8.69 |      100 |       0 |    8.69 | 17-53             
  editCorrector.ts |   77.35 |    61.11 |   91.66 |   77.35 | ...70-682,716,730 
  editor.ts        |    97.4 |    94.11 |     100 |    97.4 | 145,207,210-211   
  ...rReporting.ts |   83.72 |    84.61 |     100 |   83.72 | 82-86,107-115     
  errors.ts        |   39.02 |       60 |      75 |   39.02 | 21-25,41-57,61-67 
  fetch.ts         |   34.04 |      100 |       0 |   34.04 | 22-27,31-57       
  fileUtils.ts     |    93.1 |    88.31 |     100 |    93.1 | ...66-270,339-345 
  formatters.ts    |   54.54 |       50 |     100 |   54.54 | 12-16             
  ...eUtilities.ts |   96.03 |    95.83 |     100 |   96.03 | 28-29,57-58       
  ...rStructure.ts |   95.96 |    94.93 |     100 |   95.96 | ...14-117,345-347 
  ...noreParser.ts |     100 |    88.88 |     100 |     100 | 27,47             
  gitUtils.ts      |   51.21 |     90.9 |      50 |   51.21 | 40-41,50-73       
  ...yDiscovery.ts |   81.88 |    75.86 |      75 |   81.88 | ...28-329,332-333 
  ...tProcessor.ts |   86.86 |    88.46 |     100 |   86.86 | 115-124,131-140   
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  ...kerChecker.ts |   83.51 |    83.33 |     100 |   83.51 | ...95-100,108-114 
  partUtils.ts     |     100 |      100 |     100 |     100 |                   
  paths.ts         |    61.7 |    73.33 |   44.44 |    61.7 | ...68-169,177-178 
  ...rDetection.ts |   37.28 |    36.36 |      80 |   37.28 | ...7,91-92,98-103 
  retry.ts         |   62.55 |    73.21 |     100 |   62.55 | ...54-274,319-334 
  ...nStringify.ts |     100 |      100 |     100 |     100 |                   
  ...aValidator.ts |   86.95 |    68.75 |     100 |   86.95 | 24-25,27-28,45-46 
  session.ts       |     100 |      100 |     100 |     100 |                   
  shell-utils.ts   |   97.84 |    96.93 |     100 |   97.84 | 76-77,94-95       
  summarizer.ts    |     100 |    88.88 |     100 |     100 | 91                
  ...emEncoding.ts |      98 |    94.11 |     100 |      98 | 106-107           
  testUtils.ts     |   84.44 |    72.72 |   83.33 |   84.44 | 27-28,34-35,70-72 
  textUtils.ts     |    12.5 |      100 |       0 |    12.5 | 15-34             
  user_account.ts  |   97.72 |    96.87 |     100 |   97.72 | 102-103           
  user_id.ts       |   60.97 |    44.44 |      75 |   60.97 | ...33,46-48,52-57 
-------------------|---------|----------|---------|---------|-------------------

For detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run.

@jackalcooper jackalcooper merged commit 9c0e9cf into main Jul 26, 2025
14 checks passed
@jackalcooper jackalcooper deleted the fix-gemini-ci branch July 26, 2025 04:09
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.

1 participant