Skip to content

fix system md - #189

Merged
koalazf99 merged 1 commit into
mainfrom
feature/fan/non-cli-fix
Aug 3, 2025
Merged

koalazf99 merged 1 commit into
mainfrom
feature/fan/non-cli-fix

Conversation

@koalazf99

Copy link
Copy Markdown
Collaborator

As titled.

@github-actions

github-actions Bot commented Aug 3, 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 8d6dfaa into main Aug 3, 2025
DragonnZhang pushed a commit that referenced this pull request Apr 30, 2026
# v0.7.7 — Thinking Levels, Automation Conditions & Windows Fixes

---

## Features

- **5-level thinking system** — New thinking controls: Off / Low / Medium / High / Max. Anthropic models now use adaptive thinking instead of legacy budget-based thinking. Haiku uses correct token budgets (6000/8000 instead of 31999). Title generation no longer wastes tokens on extended reasoning. Fixes [#412](craft-ai-agents/craft-agents-oss#412).
- **Automation conditions** — New HA-inspired conditions system supporting time-based, state-based, and logical (and/or/not) composition as an optional gate between trigger and actions. Displayed as a readable "If" section in the automation detail view with natural language descriptions (e.g. "has label X", "permission mode changed from explore to allow-all"). Fixes [#405](craft-ai-agents/craft-agents-oss#405), [#355](craft-ai-agents/craft-agents-oss#355).
- **YouTube & Google Search Console** added as Google OAuth services.
- **Parallel `call_llm` execution** — `call_llm` calls now run in parallel across Claude and Pi backends instead of sequentially. Fixes [#294](craft-ai-agents/craft-agents-oss#294).
- **Server-side directory browsing** — File browser now works for remote/thin-client connections with folder selection highlight fixes.

## Bug Fixes

- **Metadata fields leaking to SDK** — `_intent`/`_displayName` fields injected for the API are now properly stripped before reaching the SDK, including regex-based fallback stripping when JSON parse fails and stripping for non-SSE JSON responses. This caused the model to output extra parameters and tool call failures. Fixes [#308](craft-ai-agents/craft-agents-oss#308).
- **MCP OAuth crash on Figma** — Servers like Figma that expose a `registration_endpoint` but return 403 for unapproved clients no longer crash the OAuth flow. Falls back to a default client ID, and now uses 'Claude Code' prefix in the MCP OAuth client name for Figma compatibility. Fixes [#189](craft-ai-agents/craft-agents-oss#189).
- **OAuth browser window on Windows** — Fixed Claude auth handoff interruption semantics that prevented the OAuth browser from opening. Fixes [#414](craft-ai-agents/craft-agents-oss#414).
- **MCP OAuth refresh loop** — MCP sources requiring browser authorization no longer get stuck in `needs_auth` state due to silent refresh attempts that returned "Token refreshed" without ever showing the login browser.
- **Missing `settings:getNetworkProxy` handler** — Network proxy settings can now be saved. Removed ~230 lines of dead code from the old handler location. Fixes [#428](craft-ai-agents/craft-agents-oss#428).
- **Project folders shared across workspaces** — Working directory history is now scoped to each workspace. Fixes [#417](craft-ai-agents/craft-agents-oss#417).
- **Custom provider model resolution** — Fixed model resolution and SDK summarization model for custom providers.
- **WebSocket client race condition** — Fixed connection race condition and added connect/disconnect logging.
- **Stale browser binding** — Fixed stale session-to-browser binding after window destruction; browser pane methods now guard against destroyed windows.
- **Webhook history verification** — Made verification resilient to edge cases.
- **Network proxy not applied to API calls** — Proxy settings configured in Settings were only applied to the Electron main process but not to the SDK subprocesses that make actual API calls. Proxy env vars are now injected into all subprocesses and the network interceptor routes requests through the configured proxy with `NO_PROXY` bypass support.
- **`CRAFT_DEBUG` env var** — No longer ignored by the standalone server.

## Improvements

- **Unified automation matching** — Refactored automation matching logic and condition validation for consistency and correctness.
- **Removed redundant flow diagram** — Removed the Mermaid flow visualization from the automation info panel; the When/If/Then sections describe automations more clearly.

## Docs

- Updated automation documentation with conditions feature, examples, and troubleshooting.

---
xaelistic pushed a commit to xaelistic/qwen-code that referenced this pull request Jun 7, 2026
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