Haoran Xu

Results issues of Haoran Xu

# Docs: synchronize localized README content ## 概述 本 PR 同步了多语言 README 中不一致的内容,使日语、西班牙语、俄语、乌克兰语、文言等版本能够提供与英文、简体中文、繁体中文版本一致的核心项目信息。 ## 修复的问题 - `docs/README_ja.md`、`docs/README_es.md`、`docs/README_ru.md`、`docs/README_uk.md` 的下载部分仍是旧版本内容,未列出 CNB Release 渠道。 - 上述 README 缺少当前版本中的参与贡献说明,包括如何提交 Issue、功能请求和 Pull Request。 - 上述...

一路走好

### Description / 描述 当前 `tool_loop_agent_runner` 在处理 LLM 同一轮返回的多个 tool call 时,采用串行 `for` 循环: ```python # tool_loop_agent_runner.py L995 for func_tool_name, func_tool_args, func_tool_id in zip( llm_response.tools_call_name, llm_response.tools_call_args, llm_response.tools_call_ids, ): # 一个个执行,上一个完成才轮到下一个...

enhancement
area:provider

Resolves #9252。 上下文压缩此前固定在上下文占用达到 $82\%$ 时触发。该固定值无法适应不同模型的最大输出能力:对于最大输出较大的模型,压缩触发后剩余空间可能不足以容纳一次完整生成;对于最大输出较小的模型,又可能过早压缩并损失可用上下文。 本次修改将压缩阈值改为可配置策略,并支持结合模型上下文窗口与最大输出预算计算阈值: $$ T_{\text{output}}=\max\left(0,1-\frac{O}{C}\right) $$ 其中 $C$ 为有效上下文窗口,$O$ 为有效最大输出预算。系统支持以下四种模式: | 模式 | 有效阈值 | |---|---| | `percentage` | 使用用户设置的固定百分比 | | `output_reserve` | 使用 $T_{\text{output}}$,为最大输出预留空间 |...

area:webui
area:core
size:L

### Description / 描述 ## 描述 token 用量圆环当前只显示 `used / limit`,其中 `limit` = 模型的完整上下文窗口。以 deepseek-v4-pro 为例,`limit` = 1M tokens。 但上下文窗口并不等于是输入空间——LLM 需要**预留一部分用于生成输出**。deepseek-v4-pro 单次最大输出 384K tokens(来自 `LLMMetadata.limit.output`),圆环显示 80% 时用户觉得「还有 200K 挺安全」,实际上下次 LLM...

enhancement
area:webui
feature:chatui

### Description / 描述 上下文压缩的触发阈值 `compression_threshold = 0.82` 在两个压缩器中均**硬编码**,不可配置,也不随模型的最大输出能力动态调整。 ### 硬编码位置 `astrbot/core/agent/context/compressor.py`: ```python # TruncateByTurnsCompressor.__init__ (line 66) class TruncateByTurnsCompressor: def __init__(self, truncate_turns: int = 1, compression_threshold: float = 0.82): #...

enhancement
area:core

### What happened / 发生了什么 ## Summary - When testing a provider with an invalid model name, the UI shows an “unavailable” status and error message, but also displays a...

bug
area:webui

## Problem\n\nAstrBot's \`astrbot_execute_python\` tool has a hardcoded 30-second timeout for \`subprocess.run\`, with no way to configure it without modifying source code.\n\n## Proposed Solution\n\nAdd a \`python_exec_timeout\` setting (default 30s) to \`provider_settings\`...

### Description / 描述 Currently, local Python execution effectively uses a hardcoded 30-second timeout and does not allow configuration or LLM control. Following maintainer @Soulter's guidance, we should expose a...

enhancement
area:core

### What happened / 发生了什么 Renaming a nested persona folder in the WebUI moves it to the root folder. If the folder has a description, it may be cleared during...

bug
area:webui
feature:persona