Commit Graph

28549 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)
 

Author SHA1 Message Date
IVY dd9c9dac53 style: format with oxfmt 8 months ago
IVY 30de4337bf fix: address review feedback and formatting
- Remove redundant name === 'MiniMax-M*' condition (already matched by startsWith)
- Use !== undefined guard instead of falsy check in deriveWindowLabelFromTimestamps
- Pass chatRemains directly to deriveWindowLabel when available
- Remove JSDoc comment style to match codebase conventions
8 months ago
IVY efd5d5eb20 fix(usage): improve MiniMax coding-plan usage parsing for model_remains array
- Pick the chat model entry (MiniMax-M*) from model_remains instead of using the first BFS candidate, which could be a speech/video/image model with total_count=0.
- Derive window label from start_time/end_time timestamps when window_hours/window_minutes fields are absent; fixes the hardcoded 5h default for 4h windows.
- Include model name in plan label so users can distinguish free-tier coding-plan quota from paid API balance.

Closes #52335
8 months ago
Peter Steinberger 90af255a91
docs: refresh gemini cli usage refs 8 months ago
Peter Steinberger 65fcf7e104
fix(gateway): scope browser-origin auth throttling 8 months ago
Vincent Koc 8f7b02e567 refactor(providers): share openai stream families 8 months ago
Peter Steinberger 035a754f0f
fix: harden android a2ui trust matching 8 months ago
Peter Steinberger 1cfc10e836
docs: refresh minimax multimodal refs 8 months ago
Vincent Koc c75f82448f
fix(google-cli): parse gemini json response and stats (#60801)
* fix(google-cli): restore gemini json reporting

* fix(google-cli): fall back to stats when usage is empty

* fix(changelog): note gemini cli cache reporting
8 months ago
Peter Steinberger 46cb493ac8
fix(sandbox): cover home credential bind audit 8 months ago
Peter Steinberger 3ec0463da9
docs: refresh minimax thinking refs 8 months ago
Peter Steinberger 3dda75894b
refactor(agents): centralize run wait helpers 8 months ago
Peter Steinberger 42778ccd46
docs: refresh provider stream family refs 8 months ago
Peter Steinberger 9615488855 fix: disable MiniMax reasoning leak (#55809) (thanks @moktamd) 8 months ago
moktamd 2701e75f40 fix: disable thinking for MiniMax anthropic-messages streaming
MiniMax M2.7 returns reasoning_content in OpenAI-style delta chunks
({delta: {content: "", reasoning_content: "..."}}) when thinking is
active, rather than native Anthropic thinking block SSE events. Pi-ai's
Anthropic provider does not handle this format, causing the model's
internal reasoning to appear as visible chat output.

Add createMinimaxThinkingDisabledWrapper that injects
thinking: {type: "disabled"} into the outgoing payload for any MiniMax
anthropic-messages request where thinking is not already explicitly
configured, preventing the provider from generating reasoning_content
deltas during streaming.

Fixes #55739
8 months ago
Peter Steinberger 561bacd06a
fix: harden synology chat TLS helper defaults 8 months ago
Peter Steinberger b473816afb
docs: refresh native streaming compat refs 8 months ago
Vincent Koc bc648ac8e6 refactor(providers): add stream family hooks 8 months ago
Peter Steinberger 1037af01ad
style(agents): normalize runtime prompt formatting 8 months ago
Peter Steinberger c70b10460c
style(auth): normalize auth choice formatting 8 months ago
Peter Steinberger f3aad63f4e
style(providers): normalize import and wrap formatting 8 months ago
Peter Steinberger 3207c5326a
refactor: share native streaming compat helpers 8 months ago
Peter Steinberger aaa173a4a7
docs: clarify node exec approval binding 8 months ago
Peter Steinberger 9ddfaff45f
docs: clarify node exec approval plan forwarding 8 months ago
Peter Steinberger 605f48556b
refactor(browser): share lifecycle cleanup helpers 8 months ago
Peter Steinberger c3f415ad6e
fix: preserve node system.run approval plans 8 months ago
Peter Steinberger f832699fd7
docs: refresh provider hook overview refs 8 months ago
Peter Steinberger 53c33f8207
fix: forward node exec approval plans 8 months ago
Peter Steinberger 62c54fdc16
docs: refresh provider replay family refs 8 months ago
Jasmine Zhang b838ecf885 fix: add 60s timeout to MiniMax VLM fetch call
The VLM image analysis fetch had no timeout, causing sessions to hang
indefinitely when the MiniMax API is slow or unresponsive. Other
vision/model API calls in the codebase already use timeouts. Adds
AbortSignal.timeout(60_000) consistent with image upload workloads.

Fixes #54139
8 months ago
Peter Steinberger 39bcf695dc
fix(cron): reject unsafe custom session targets earlier 8 months ago
Peter Steinberger 00337cdde1
docs: refresh codex auth and ws refs 8 months ago
Vincent Koc c29d4bbb86 test(providers): add family capability matrix coverage 8 months ago
Peter Steinberger 91bac7cb83
fix(usage): restore provider auth fallback 8 months ago
Peter Steinberger 6bbccb087a
docs: refresh google cached content refs 8 months ago
Peter Steinberger 49bf527fd4
docs: clarify reserved gateway method namespaces 8 months ago
Peter Steinberger 9b352ab5b0
test: isolate session status from provider runtime leak 8 months ago
Peter Steinberger b7411ad594
refactor(cron): share descendant run quiescence wait 8 months ago
Peter Steinberger 7b6334b0f4
refactor(agents): share run wait reply helpers 8 months ago
Peter Steinberger bbb0b574c4
refactor: centralize gateway method policy helpers 8 months ago
Vincent Koc d766465e38
fix(google): add direct cachedContent support (#60757)
* fix(google): restore gemini cache reporting

* fix(google): split cli parsing into separate PR

* fix(google): drop remaining cli overlap

* fix(google): honor cachedContent alias precedence
8 months ago
Peter Steinberger b9e3c1a02e
docs: refresh cron and subagent browser cleanup refs 8 months ago
Peter Steinberger 7ffbbd8586
fix: reserve admin gateway method prefixes 8 months ago
Peter Steinberger 86ee50b968
docs: refresh web search overview mirrors 8 months ago
Peter Steinberger 3b09b58c5d test: cover browser cleanup for cron and subagents (#60146) (thanks @BrianWang1990) 8 months ago
BrianWang1990 e697838899 style: fix import order in server-cron.ts
Move plugin-sdk import after cron/* imports per alphabetical convention.
8 months ago
BrianWang1990 72b2e413d6 fix(browser): clean up browser tabs/processes when cron tasks and subagents complete
When cron tasks or subagents use browser automation, the browser
processes were not cleaned up after the task completed. This caused
orphaned Chrome processes (PPID=1) to accumulate over time.

Root cause: closeTrackedBrowserTabsForSessions was only called during
session-reset/session-delete (via ensureSessionRuntimeCleanup), but
isolated cron runs and subagent completions never triggered these paths.

Fix: Add browser tab cleanup in two places:
1. server-cron.ts: wrap runCronIsolatedAgentTurn in try/finally to
   ensure browser tabs are cleaned up after every cron run.
2. subagent-registry-lifecycle.ts: call closeTrackedBrowserTabsForSessions
   when a subagent run completes, before the announce cleanup flow.

Both cleanup calls are best-effort (caught errors) so they never mask
the actual task result or break the completion flow.

Fixes #60104
8 months ago
Peter Steinberger 0b1c9c7057
fix: stabilize codex auth ownership and ws fallback cache 8 months ago
Peter Steinberger fca889eea3
docs: refresh browser troubleshooting mirrors 8 months ago
Peter Steinberger 29f062770d
docs: refresh browser stop cleanup refs 8 months ago