Skip to content

fix e2e - #185

Merged
koalazf99 merged 1 commit into
mainfrom
feature/fan/fixe2e
Aug 2, 2025
Merged

fix e2e#185
koalazf99 merged 1 commit into
mainfrom
feature/fan/fixe2e

Conversation

@koalazf99

Copy link
Copy Markdown
Collaborator

No description provided.

@koalazf99
koalazf99 requested a review from ranpox August 2, 2025 15:38
@github-actions

github-actions Bot commented Aug 2, 2025

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 72.25% 72.25% 78.57% 80.17%
Core 66.16% 66.16% 70.15% 79.2%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   72.25 |    80.17 |   78.57 |   72.25 |                   
 src               |   52.84 |    67.92 |      60 |   52.84 |                   
  gemini.tsx       |   25.57 |    33.33 |   33.33 |   25.57 | ...55-268,280-336 
  ...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.83 |    80.28 |   76.47 |   87.83 |                   
  auth.ts          |   81.81 |    94.44 |      25 |   81.81 | ...53,56-57,60-61 
  config.ts        |   96.62 |    83.33 |    62.5 |   96.62 | ...03,310,480-484 
  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 | ...79-380,420-421 
 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      |   57.78 |    86.27 |   70.58 |   57.78 |                   
  ...mandLoader.ts |     100 |      100 |     100 |     100 |                   
  ...andService.ts |     100 |      100 |     100 |     100 |                   
  ...mandLoader.ts |   91.25 |    90.62 |     100 |   91.25 | 135-140,203-210   
  ...omptLoader.ts |    9.39 |    57.14 |   33.33 |    9.39 | ...44-167,173-230 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...mpt-processors |   95.18 |    94.73 |     100 |   95.18 |                   
  ...tProcessor.ts |     100 |      100 |     100 |     100 |                   
  ...lProcessor.ts |   93.54 |    92.85 |     100 |   93.54 | 67-70             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/test-utils    |     100 |      100 |     100 |     100 |                   
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
 src/ui            |   60.51 |    67.02 |      68 |   60.51 |                   
  App.tsx          |   57.34 |    60.25 |      50 |   57.34 | ...-980,1005-1034 
  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.43 |    78.31 |   62.79 |   62.43 |                   
  AboutBox.tsx     |     100 |       50 |     100 |     100 | 102               
  AsciiArt.ts      |     100 |      100 |     100 |     100 |                   
  AuthDialog.tsx   |   71.53 |       85 |      40 |   71.53 | ...17-121,127-133 
  ...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 | 76-81,101         
  ...esDisplay.tsx |   10.52 |      100 |       0 |   10.52 | 24-82             
  ...ngsDialog.tsx |    6.76 |      100 |       0 |    6.76 | 26-168            
  Footer.tsx       |   72.72 |    18.18 |     100 |   72.72 | ...,88-91,109-116 
  ...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 |                   
  ...KeyPrompt.tsx |   62.33 |    31.25 |     100 |   62.33 | ...58-111,115-123 
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ionDialog.tsx |   85.93 |      100 |      50 |   85.93 | 34-36,40-47       
  ...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   |   84.45 |    78.57 |     100 |   84.45 |                   
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 46-47,59-61       
  ...onContext.tsx |   87.01 |      100 |     100 |   87.01 | 102-105,114-119   
  ...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      |   77.18 |    81.25 |   80.64 |   77.18 |                   
  ...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 |    83.2 |    70.42 |     100 |    83.2 | ...06-410,435-442 
  ...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 |   68.85 |     70.5 |     100 |   68.85 | ...42-843,873-963 
  ...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 | 22-143            
  ...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.64 |    92.47 |     100 |   99.64 |                   
  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 |                   
  qwen-dark.ts     |     100 |      100 |     100 |     100 |                   
  qwen-light.ts    |     100 |      100 |     100 |     100 |                   
  ...-of-purple.ts |     100 |      100 |     100 |     100 |                   
  theme-manager.ts |   93.93 |    84.44 |     100 |   93.93 | ...94,198,225-226 
  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         |   11.91 |    85.18 |   63.63 |   11.91 |                   
  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-890             
  ...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          |   66.16 |     79.2 |   70.15 |   66.16 |                   
 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        |   75.21 |       84 |   46.05 |   75.21 |                   
  config.ts        |      75 |       84 |   46.05 |      75 | ...80-687,693-694 
  models.ts        |     100 |      100 |     100 |     100 |                   
 src/core          |   56.98 |    67.34 |   71.07 |   56.98 |                   
  client.ts        |   74.69 |       75 |   76.92 |   74.69 | ...90,792-793,796 
  ...tGenerator.ts |   80.55 |    73.07 |     100 |   80.55 | ...30,160,171-188 
  ...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    |     100 |      100 |     100 |     100 |                   
  ...olExecutor.ts |     100 |    66.66 |     100 |     100 | 64,99             
  ...tGenerator.ts |   24.49 |       29 |   43.47 |   24.49 | ...1786,1792-1813 
  prompts.ts       |   93.66 |    88.46 |      75 |   93.66 | ...,96-97,429-486 
  tokenLimits.ts   |      15 |      100 |       0 |      15 | 15-31             
  turn.ts          |   83.21 |    83.33 |     100 |   83.21 | ...63-266,279-280 
 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.38 |    78.76 |   76.31 |   73.38 |                   
  ...h-provider.ts |   83.01 |      100 |   33.33 |   83.01 | ...69,73,77,81-82 
  ...h-provider.ts |    76.4 |    65.07 |      90 |    76.4 | ...45-647,652-654 
  ...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.73 |    82.96 |    75.4 |   67.73 |                   
  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 |       94 |   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.78 |    78.39 |   66.43 |   59.78 |                   
  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.12 |    69.81 |      80 |   82.12 | ...89-490,497-498 
  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         |   72.82 |    84.69 |   77.84 |   72.82 |                   
  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 
  ...iAnalytics.ts |    4.78 |        0 |       0 |    4.78 | ...44-339,343-360 
  ...iLogViewer.ts |    6.94 |        0 |       0 |    6.94 | ...29-146,150-197 
  openaiLogger.ts  |    19.1 |      100 |   33.33 |    19.1 | ...96-116,124-131 
  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   |   95.21 |    93.57 |     100 |   95.21 | ...,94-95,142-144 
  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.66 |     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.

@koalazf99
koalazf99 merged commit dbc0eb4 into main Aug 2, 2025
13 checks passed
xaelistic pushed a commit to xaelistic/qwen-code that referenced this pull request Jun 7, 2026
aspnmy pushed a commit to aspnmy/qwen-code that referenced this pull request Jun 16, 2026
aspnmy pushed a commit to aspnmy/qwen-code that referenced this pull request Jun 18, 2026
…patches

Merge upstream QwenLM/qwen-code main (70d6e5f) into aspnmy fork.
Re-applied 3 previously-unmerged patches with conflict resolution:

1. fix(ui): React QwenLM#185 — state update on unmounted component (6a8fd71)
   - Add cancelled guards to 5 async hooks
   - Fix unmount-time setState in AgentChatContent

2. fix(core): tool-call circuit breaker (518fad0)
   - Global duplicate detection, alternating pattern, per-turn cap
   - 227 lines of new test coverage
   - Fixed: added missing LoopType labels in nonInteractiveCli.ts

3. fix(core): anti-polling guidance for subagent completion (91867b9)
   - 1-line addition to agent system prompt
   - Fixed: ToolNames.SHELL for upstream compat

Skipped (already fixed upstream):
  - exit_plan_mode tool visibility (upstream: 7520cdd)

Build: npm run build PASS (0 errors, 0 warnings)
wenshao added a commit that referenced this pull request Jun 18, 2026
…arden async hooks (#5286)

AgentChatContent reset the AgentView provider's `agentShellFocused` in an effect
cleanup (`return () => setAgentShellFocused(false)`). When the child and the
provider unmount in the same commit, that cleanup setState re-enters the
provider and can contribute to a "Maximum update depth exceeded" loop (the
minified React #185 reported in #5199). The value is already re-established on
mount, so the cleanup reset is removed.

Also harden five async hooks (useShellHistory, useLogger, useCommandMigration,
useGitBranchName, useWorktreeSession) with a `cancelled` flag + cleanup so their
post-await setState is skipped after unmount. React 19 tolerates that silently,
but the guards avoid stale updates and wasted renders.

Co-authored-by: aspnmy <7374416+aspnmy@users.noreply.github.com>
TaimoorSiddiquiOfficial pushed a commit to TaimoorSiddiquiOfficial/HopCode that referenced this pull request Jun 18, 2026
…and to HopCode

Upstream commits:

- fix(cli): drop AgentView cleanup setState that can trip React QwenLM#185; harden async hooks

- fix(core): read WebP VP8X canvas height from the correct byte offset

- fix(cli): support ctrl np in completions

Rebranding applied:

- Resolve useGitBranchName.ts conflict to keep @hoptrendy/hopcode-core import

- Rename plugin-example bin from qwen-channel-plugin-example-server to hopcode-channel-plugin-example-server

- Refresh package-lock.json for renamed bin
wenshao added a commit to wenshao/qwen-code that referenced this pull request Jun 18, 2026
…M#185 fix

Re-adds the explanatory comments the refactor dropped: in useWorktreeSession the
Linux Buffer-filename toString() rationale plus the mkdir/watcher notes, and in
useGitBranchName the .git/logs/HEAD existence check and watcher-error handling.
Comments only — no behavior change. Per review on QwenLM#5286.
yiliang114 added a commit that referenced this pull request Aug 17, 2026
Follow-up to the tab-switch resets: while agentShellFocused is stale,
the tab bar swallows left/right — the only escape — so a crash is
exactly the state the switch resets cannot reach (they are guarded by
the very flag they would clear). Two additions:

- The per-tab boundary clears the flag in onError (componentDidCatch —
  commit phase, safe, unlike the unmount cleanup the content avoids
  for React error #185): the crashed content is the flag's only
  production writer, and once it is gone nothing else can own the
  focus. Pinned by AgentChatView tests (crash clears, healthy tab
  untouched).
- Belt and braces: the provider resets the flag on ANY activeView
  change (skipping the mount run, which would clobber a same-commit
  seed from the active content) — covering unregisterAgent/
  unregisterAll, which bounce the view without a switch. Pinned by an
  act()-driven unregister test.

Also stabilize the switch test's flush count: two setImmediates were
one render short in this environment's scheduler (asserted state was
'main:true', the switch not yet flushed); four settle it.
undici77 pushed a commit to undici77/qwen-code-no-telemetry that referenced this pull request Aug 17, 2026
…ion (QwenLM#9292)

* fix(cli): contain agent-tab render errors instead of exiting the session

Opening an agent-team member tab whose transcript threw during render
took down the whole interactive session: the app has a single FATAL
top-level error boundary that logs [FATAL_RENDER_ERROR] and exits ~5s
later, and the agent-tab view under it had no boundary of its own.
The main transcript's think blocks already degrade per-error; team
tabs did not (QwenLM#9290).

Wrap AgentChatContent in a non-fatal ErrorBoundary so one errored or
incomplete teammate degrades THAT tab to a recoverable failure panel
(session still running, other tabs unaffected) and logs an
[AGENT_TAB_RENDER_ERROR] with the component stack for diagnosis. The
boundary is keyed by agentId so switching away from a crashed tab
starts from fresh state instead of stranding every later tab in the
fallback.

Tests pin the containment (a throwing transcript renders the panel
instead of propagating), the per-agent keying (switching to a healthy
tab recovers), the healthy path, and the missing-agent panel; both
load-bearing pins were mutation-verified red. The exact upstream throw
in the reporter's session is still unknown — this closes the verified
containment gap regardless of cause, as the triage analysis directed.

Fixes QwenLM#9290

* fix(cli): clear agent shell focus on tab switch

* fix(cli): release the shell-focus lock when a tab crashes (QwenLM#9290)

Follow-up to the tab-switch resets: while agentShellFocused is stale,
the tab bar swallows left/right — the only escape — so a crash is
exactly the state the switch resets cannot reach (they are guarded by
the very flag they would clear). Two additions:

- The per-tab boundary clears the flag in onError (componentDidCatch —
  commit phase, safe, unlike the unmount cleanup the content avoids
  for React error QwenLM#185): the crashed content is the flag's only
  production writer, and once it is gone nothing else can own the
  focus. Pinned by AgentChatView tests (crash clears, healthy tab
  untouched).
- Belt and braces: the provider resets the flag on ANY activeView
  change (skipping the mount run, which would clobber a same-commit
  seed from the active content) — covering unregisterAgent/
  unregisterAll, which bounce the view without a switch. Pinned by an
  act()-driven unregister test.

Also stabilize the switch test's flush count: two setImmediates were
one render short in this environment's scheduler (asserted state was
'main:true', the switch not yet flushed); four settle it.

* fix(cli): show agent tab debug hint

---------

Co-authored-by: yiliang114 <yiliang114@users.noreply.github.com>
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