Skip to content

feat(ai): default MiniMax to M3.1 Flash and preserve reasoning history - #825

Open
octo-patch wants to merge 114 commits into
tomlin7:mainfrom
octo-patch:octo/minimax-m31-flash
Open

octo-patch wants to merge 114 commits into
tomlin7:mainfrom
octo-patch:octo/minimax-m31-flash

Conversation

@octo-patch

@octo-patch octo-patch commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Reason: The executable MiniMax catalog still offers legacy IDs, and its response handling drops the thinking blocks required by MiniMax-M3.1-Flash tool conversations.

Changes

  • Advertise MiniMax-M3.1-Flash first and MiniMax-M3 second. Keep explicit saved, custom, and legacy model IDs selected and send them unchanged.
  • Preserve complete native assistant blocks through tool continuations and subsequent chat turns, including thinking signatures and tool IDs.
  • Return text correctly when thinking appears first or streaming has no callback. Leave thinking and effort omitted so the API supplies Flash adaptive/max and M3 thinking-off defaults.
  • Keep image/video content blocks intact and update the MiniMax model documentation.

Validation

  • ruff check src tests scripts --select=E9,F63,F7,F82 — passed.
  • flake8 src tests scripts --count --select=E9,F63,F7,F82 --show-source --statistics — passed.
  • Python 3.12 compilation of the changed AI source and tests, git diff --check, and staged secret scan — passed.
  • An offline harness loading the real AI package and using the real SDK with a mocked HTTP transport passed 16 requests with the repository-pinned SDK 0.117.0, and separately with SDK 1.4.0. Coverage includes default/explicit models, sync/stream serialization, default thinking/effort omission, image/video blocks, tools, and reasoning history across turns.
  • Added tests/test_ai_minimax.py for transport and selector regression coverage. Running it alongside test_ai_ollama.py and test_ai_cancellation.py could not collect because the SDK-only environment lacks the GUI dependency hintedtext. The unchanged base commit 2018f5f76c43f948a53013b07184e375d85bb97d reproduces the same collection error. Full application dependency setup was paused when available disk fell below the shared environment's required 100 GiB threshold. This limitation applies to the local full application environment.
  • Final-head CI at 32d0f7d33ea33b0b449083eb6fa898a4ac14a040 passes all nine platform test jobs, lint, documentation validation, DeepSource, and coverage checks. The Ubuntu/Python 3.13 log confirms all 23 new regression cases ran and the full suite reports 480 passed, 6 skipped, 1 deselected. CI run.
  • The remaining red Vercel status says "Authorization required to deploy"; it is an external deployment gate.

No paid inference was performed. The integration retains its existing global Messages endpoint; no additional regional or gateway support is claimed. Explicit legacy/custom IDs are preserved, but their availability remains an API decision.

dependabot Bot and others added 30 commits October 12, 2026 11:06
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 7.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v5...v7)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 5 to 7.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@v5...v7)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v3...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.52 to 3.1.57.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](gitpython-developers/GitPython@3.1.52...3.1.57)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-version: 3.1.57
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the uv group with 1 update in the / directory: [gitpython](https://github.com/gitpython-developers/GitPython).


Updates `gitpython` from 3.1.52 to 3.1.54
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](gitpython-developers/GitPython@3.1.52...3.1.54)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-version: 3.1.54
  dependency-type: direct:production
  dependency-group: uv
...

Signed-off-by: dependabot[bot] <support@github.com>
---
updated-dependencies:
- dependency-name: gitpython
  dependency-version: 3.1.62
  dependency-type: direct:production
  dependency-group: uv
- dependency-name: aiohttp
  dependency-version: 3.14.3
  dependency-type: indirect
  dependency-group: uv
- dependency-name: cairosvg
  dependency-version: 2.9.1
  dependency-type: indirect
  dependency-group: uv
- dependency-name: cryptography
  dependency-version: 50.0.0
  dependency-type: indirect
  dependency-group: uv
- dependency-name: multidict
  dependency-version: 6.9.1
  dependency-type: indirect
  dependency-group: uv
- dependency-name: urllib3
  dependency-version: 2.8.0
  dependency-type: indirect
  dependency-group: uv
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [google-genai](https://github.com/googleapis/python-genai) from 2.12.1 to 2.29.0.
- [Release notes](https://github.com/googleapis/python-genai/releases)
- [Changelog](https://github.com/googleapis/python-genai/blob/main/CHANGELOG.md)
- [Commits](googleapis/python-genai@v2.12.1...v2.29.0)

---
updated-dependencies:
- dependency-name: google-genai
  dependency-version: 2.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dates

Bumps the npm_and_yarn group with 2 updates in the /www directory: [postcss](https://github.com/postcss/postcss) and [sharp](https://github.com/lovell/sharp).


Updates `postcss` from 8.5.18 to 8.5.23
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.5.18...8.5.23)

Updates `sharp` from 0.34.5 to 0.35.5
- [Release notes](https://github.com/lovell/sharp/releases)
- [Commits](lovell/sharp@v0.34.5...v0.35.5)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.23
  dependency-type: direct:development
- dependency-name: sharp
  dependency-version: 0.35.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [anthropic](https://github.com/anthropics/anthropic-sdk-python) from 0.117.0 to 0.117.1.
- [Release notes](https://github.com/anthropics/anthropic-sdk-python/releases)
- [Changelog](https://github.com/anthropics/anthropic-sdk-python/blob/main/CHANGELOG.md)
- [Commits](anthropics/anthropic-sdk-python@v0.117.0...v0.117.1)

---
updated-dependencies:
- dependency-name: anthropic
  dependency-version: 0.117.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mkdocstrings-python](https://github.com/mkdocstrings/python) from 2.0.5 to 2.0.9.
- [Release notes](https://github.com/mkdocstrings/python/releases)
- [Changelog](https://github.com/mkdocstrings/python/blob/main/CHANGELOG.md)
- [Commits](mkdocstrings/python@2.0.5...2.0.9)

---
updated-dependencies:
- dependency-name: mkdocstrings-python
  dependency-version: 2.0.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mistune](https://github.com/lepture/mistune) from 3.3.3 to 3.3.4.
- [Release notes](https://github.com/lepture/mistune/releases)
- [Changelog](https://github.com/lepture/mistune/blob/main/docs/changes.rst)
- [Commits](lepture/mistune@v3.3.3...v3.3.4)

---
updated-dependencies:
- dependency-name: mistune
  dependency-version: 3.3.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…dates (tomlin7#709)

Bumps the npm_and_yarn group with 2 updates in the /www directory: [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) and [source-map-js](https://github.com/7rulnik/source-map-js).


Updates `baseline-browser-mapping` from 2.10.31 to 2.11.28
- [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases)
- [Commits](web-platform-dx/baseline-browser-mapping@v2.10.31...v2.11.28)

Updates `source-map-js` from 1.2.1 to 1.2.2
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: baseline-browser-mapping
  dependency-version: 2.11.28
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: source-map-js
  dependency-version: 1.2.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
tomlin7 and others added 21 commits October 18, 2026 16:17
…support (tomlin7#129) (tomlin7#751)

* feat(theming): implement runtime theme switching and theme extension support (tomlin7#129)

* fix(settings): safely access registered_themes on uninitialized Config instances
…mlin7#782)

Bumps [tree-sitter-language-pack](https://github.com/xberg-io/tree-sitter-language-pack) from 1.12.5 to 1.22.1.
- [Release notes](https://github.com/xberg-io/tree-sitter-language-pack/releases)
- [Changelog](https://github.com/xberg-io/tree-sitter-language-pack/blob/main/CHANGELOG.md)
- [Commits](xberg-io/tree-sitter-language-pack@v1.12.5...v1.22.1)

---
updated-dependencies:
- dependency-name: tree-sitter-language-pack
  dependency-version: 1.21.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tomlin7 <billydevbusiness@gmail.com>
Bumps [click](https://github.com/pallets/click) from 8.4.2 to 8.5.0.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.md)
- [Commits](pallets/click@8.4.2...8.5.0)

---
updated-dependencies:
- dependency-name: click
  dependency-version: 8.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
updated-dependencies:
- dependency-name: aiohttp
  dependency-version: 3.14.4
  dependency-type: indirect
  dependency-group: uv
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@octo-patch is attempting to deploy a commit to the Billy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.61905% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 38.48%. Comparing base (31dcd15) to head (32d0f7d).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/biscuit/views/ai/ai.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #825      +/-   ##
==========================================
+ Coverage   37.75%   38.48%   +0.72%     
==========================================
  Files         348      348              
  Lines       21946    21954       +8     
==========================================
+ Hits         8286     8448     +162     
+ Misses      13660    13506     -154     

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants