Skip to content

Conversation

zwpaper
Copy link
Member

@zwpaper zwpaper commented May 13, 2025

The debug log indicates that the answer was invoked prior to the page generation:

CleanShot 2025-05-13 at 16 46 42@2x

New Page has more details:
CleanShot 2025-05-13 at 16 48 15@2x

@zwpaper zwpaper force-pushed the chore/new-page-leverage-answer branch from a0d0778 to fe76d62 Compare May 13, 2025 08:55
Copy link

codecov bot commented May 13, 2025

Codecov Report

Attention: Patch coverage is 28.57143% with 85 lines in your changes missing coverage. Please review.

Project coverage is 55.54%. Comparing base (87774b1) to head (4bf1df0).
Report is 30 commits behind head on main.

Files with missing lines Patch % Lines
ee/tabby-webserver/src/service/page.rs 19.10% 72 Missing ⚠️
ee/tabby-webserver/src/service/mod.rs 0.00% 13 Missing ⚠️

❌ Your patch status has failed because the patch coverage (28.57%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4237      +/-   ##
==========================================
- Coverage   55.65%   55.54%   -0.12%     
==========================================
  Files         238      238              
  Lines       30092    30177      +85     
==========================================
+ Hits        16749    16762      +13     
- Misses      13343    13415      +72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zwpaper zwpaper requested review from Copilot and wsxiaoys and removed request for Copilot May 13, 2025 13:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR integrates the AnswerService into the page creation flow to leverage answer generation before a new page is created. Key changes include:

  • Introducing AnswerService in the PageService implementation with answer stream processing.
  • Updating function signatures and dependency injections to support the new answer engine.
  • Adjusting tests and module initializations to accommodate AnswerService.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
ee/tabby-webserver/src/service/page.rs Integrates AnswerService; adds answer stream looping and message construction.
ee/tabby-webserver/src/service/mod.rs Updates page service creation to depend on both chat and answer services.
ee/tabby-webserver/src/service/answer/testutils/mod.rs Moves answer config helper functions to a shared location.
ee/tabby-webserver/src/service/answer.rs Refactors test-related answer configurations.

@wsxiaoys wsxiaoys merged commit 08091cc into main May 28, 2025
5 of 8 checks passed
@wsxiaoys wsxiaoys deleted the chore/new-page-leverage-answer branch May 28, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants