Repository navigation
fix(core): persist full assistant parts and add e2e coverage #1131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
6b66a65
53f2dd2
11fb758
e553579
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@voltagent/core": patch | ||
| --- | ||
|
|
||
| fix(core): persist reasoning and tool parts across step checkpoint flushes (#1130) | ||
|
|
||
| When `conversationPersistence.mode = "step"` was used with tool calls, some checkpoint flows could | ||
| persist incomplete assistant messages and lose non-text parts in stored conversation history. | ||
|
|
||
| This update preserves complete assistant message parts during checkpoint merges and persistence | ||
| flushes, including reasoning, tool-call, tool-result, and text parts. | ||
|
|
||
| Regression coverage is expanded with end-to-end agent persistence tests against both LibSQL and | ||
| PostgreSQL backends to reduce the chance of similar regressions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,9 +52,42 @@ jobs: | |
| - name: Test Package | ||
| run: lerna run test --scope "${{ steps.scope.outputs.scope }}" | ||
|
|
||
| e2e-tests: | ||
| runs-on: ubuntu-latest | ||
| name: E2E Tests | ||
| services: | ||
| postgres: | ||
| image: postgres:16 | ||
| env: | ||
| POSTGRES_USER: test | ||
| POSTGRES_PASSWORD: test | ||
| POSTGRES_DB: voltagent_test | ||
| ports: | ||
| - 5432:5432 | ||
| options: >- | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align Postgres port between workflow service and e2e test defaults. The e2e Postgres spec uses Suggested fix - name: Run E2E Tests
run: pnpm --filter `@voltagent/e2e` test
+ env:
+ VOLTAGENT_E2E_POSTGRES_PORT: "5432"Also applies to: 85-86 🤖 Prompt for AI Agents |
||
| --health-cmd pg_isready | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 5 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| cache: "pnpm" | ||
| - name: Install Dependencies | ||
| run: pnpm install | ||
| env: | ||
| NODE_OPTIONS: "--max-old-space-size=8192" | ||
| - name: Build E2E Dependencies | ||
| run: pnpm lerna run build --scope @voltagent/e2e --include-dependencies | ||
| - name: Run E2E Tests | ||
| run: pnpm --filter @voltagent/e2e test | ||
|
|
||
| prerelease: | ||
| name: Prerelease | ||
| needs: test-packages | ||
| needs: [test-packages, e2e-tests] | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.