Commit Graph
4979 Commits
Author SHA1 Message Date
LuckVd ef2cd0c8c7 Activate the api profile in the compose privilege-boundary check
The boundary assertion materializes gateway, api and cli from the merged
compose config; with nanobot-api now under the api profile it must opt in
explicitly or the lookup raises KeyError.
2026-10-19 13:02:26 +08:00
LuckVd ddd22a26f8 Bootstrap a working Docker Compose config on first boot so the WebUI works out of the box
A fresh 'docker compose up' started with no config (the entrypoint only
bootstrapped for Render), so every published port was unreachable: the
gateway and WebSocket channel defaulted to a container-local 127.0.0.1
bind, and nanobot-api exited into a restart loop because serve refuses a
non-loopback host without an api_key.

Bootstrap config.json for container runs (NANOBOT_DOCKER_BOOTSTRAP, set
by docker-compose.yml) from a committed docker-config.json with binds
that survive the container boundary, baking the WebUI token and API key
at first boot (env value if provided, generated otherwise, printed to
the log). Move nanobot-api under the 'api' profile since it cannot
serve before a provider is configured. Install curl in the image and
document the new first-boot flow.

Fixes #6165
2026-10-19 13:02:26 +08:00
chengyongru 53e0edf709 fix(session): prevent consumed follow-ups from replaying after restart (#6299)
* fix(session): atomically acknowledge consumed follow-ups

* refactor(webui): drop legacy follow-up replay compatibility
2026-10-19 11:31:19 +08:00
chengyongru 743d40bbba fix(webui): restore symmetry of the settings gear (#6298)
* fix(webui): restore symmetry of the settings gear

Fixes NAN-276

* fix(webui): keep settings hub out of hover rotation
2026-10-19 10:43:23 +08:00
chengyongru d8714fe664 fix(webui): keep unbranded app initials readable 2026-10-19 10:13:26 +08:00
chengyongru 1832255995 docs: make user guidance easier to follow 2026-10-19 10:11:45 +08:00
Xubin Ren b702ac633f test(gateway): publish child claim markers atomically 2026-10-18 22:11:14 +08:00
fhgffy a3ead61580 fix(cron): preserve schedules edited during execution 2026-10-18 22:11:14 +08:00
Xubin Ren 59bfdc895b test(cron): cover repeated restart and overdue interval behavior 2026-10-18 21:44:59 +08:00
DDT 6dd3788e05 fix(cron): keep pending interval runs across gateway restarts
Every-interval jobs had their next run recomputed from now on startup,
and register_system_job reset the Dream/heartbeat state on each boot.
A gateway restarted more often than the interval therefore never ran
the job. Keep a persisted next run while it is still pending and at
most one interval away.
2026-10-18 21:44:59 +08:00
pei711 6670dd72da fix(mcp): discover all resource and prompt pages 2026-10-18 21:32:42 +08:00
pei711 a377a8e0d3 fix(mcp): honor optional server tool capabilities 2026-10-18 21:18:54 +08:00
wkd 68e9b1cc3a fix(mcp): prevent credential leakage in discovery error logs 2026-10-18 20:52:31 +08:00
Xubin Ren 5d99f909a7 test(cli): identify Windows handoff stages on timeout 2026-10-18 20:36:33 +08:00
KennySimpson 23bf1b87cd fix: use JSON equality for enum validation 2026-10-18 20:36:33 +08:00
Shoaib 9fe061a537 fix(tools): accept integral JSON numbers for integer parameters
JSON Schema accepts numbers such as 3.0 as integers, but Python decodes
that representation as float. Tool calls with valid integral arguments
were therefore rejected before execution, including nullable and union
integer schemas.

Share the integer check across schema validation and union matching, then
convert integral floats to int before calling the tool. Keep fractional
values, booleans, and non-finite numbers outside the integer type.

Add schema and registry regressions for integral JSON numbers.

Validation: 144 tool-validation tests; Ruff; BasedPyright;
import-boundary checks; git diff --check.
2026-10-18 20:22:33 +08:00
pei711 5fd79c25fa fix(providers): preserve first SSE event after UTF-8 BOM 2026-10-18 20:10:51 +08:00
Xubin Ren d0a1423ccf fix(agent): retain skipped inline reasoning separators 2026-10-18 19:57:34 +08:00
yixi ning ed8143f7d0 fix(agent): preserve separators in streamed inline reasoning 2026-10-18 19:57:34 +08:00
Xubin Ren a389633b9c fix(email): preserve case-colliding attachment files 2026-10-18 19:44:48 +08:00
fhgffy 38c92558ca fix(email): preserve attachments with colliding filenames 2026-10-18 19:44:48 +08:00
Jin Long ba406fc624 fix(session): preserve Unicode separators during JSONL migration 2026-10-18 19:30:29 +08:00
chengyongru 0a8b18fa58 fix(deepseek): align model capabilities with the official API (#6283)
* fix(deepseek): preserve vision for legacy Flash aliases

* fix(deepseek): expose validated model catalog capabilities

* fix(deepseek): retain explicit off control with live reasoning levels

* docs: clarify provider-specific model guidance
2026-10-18 19:17:05 +08:00
fhgffy aef8127aff fix(email): exclude attached messages from body extraction 2026-10-18 19:11:29 +08:00
Xubin Ren 271bda1d81 fix(napcat): simplify unknown-size handling and check download cap 2026-10-18 18:56:28 +08:00
Lengshuang 17684ca5c4 fix(napcat): keep a message whose image declares a non-numeric size
Napcat reports an image segment's file_size as a string that is not
always numeric, so int() raises ValueError. The upfront size guard only
caught TypeError and KeyError, the ValueError escaped _download_image
into _on_message, and the whole inbound message was dropped — text
included — with only a background-handler warning left behind.

Handle ValueError as the guard already handles a missing size: skip the
upfront check and let the streamed download enforce max_image_bytes.
Log it, since a declared size we cannot read is worth knowing about.
2026-10-18 18:56:28 +08:00
Xubin Ren 90fcb7f903 test(agent): close session input fixtures and share shutdown diagnostics 2026-10-18 18:33:24 +08:00
Xubin Ren 2756c6bb78 test(agent): capture native shutdown timeout stacks 2026-10-18 18:33:24 +08:00
Xubin Ren 3d25912510 fix(telegram): preserve fence syntax across message chunks 2026-10-18 18:33:24 +08:00
Xubin Ren b3fba7c78f test(telegram): verify fenced code at outbound send boundary 2026-10-18 18:33:24 +08:00
HuiandClaude Opus 5.5 7f64efbb95 fix(telegram): render tilde and longer code fences as code
The Markdown-to-HTML converter only protected ``` blocks, and closed a
block at the first ``` it met. A ~~~ block was formatted as prose ("#
setup" turned bold, __init__ into <b>init</b>), and a ```` block showing a
``` example rendered as an empty <pre> followed by leaked, re-formatted
text.

Protect fenced blocks line by line first: open on ``` or ~~~, close on a
run of the same character at least as long. One-line ```code``` and
unclosed fences keep the previous regex handling. The streaming preview
strips fences through the same helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 18:33:24 +08:00
Xubin Ren df6158ec18 test(telegram): cover plain and fragment media URLs 2026-10-18 17:38:49 +08:00
Gianfranco DemarcoandCursor 9214390f9d fix(telegram): detect remote media types with queries
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 17:38:49 +08:00
Xubin Ren 6baf7178a8 fix(webui): cancel stale history reads on local navigation 2026-10-18 17:13:18 +08:00
Xubin Ren 27ef6fe24f fix(webui): center prompt navigation in the complete chat frame 2026-10-18 17:13:18 +08:00
Xubin Ren f230409b5a fix(webui): navigate from history to unsaved live prompts 2026-10-18 17:13:18 +08:00
Xubin Ren f9a3e55b64 perf(webui): revalidate prompt summaries and bound navigation work 2026-10-18 17:13:18 +08:00
Xubin Ren bf1eada575 fix(webui): navigate complete prompt history with bounded pages 2026-10-18 17:13:18 +08:00
takiAA 5f6e8a6baa fix(documents): preserve complete PDF pages across reads 2026-10-18 16:52:47 +08:00
Xubin Ren 42276f4884 test(shell): treat vanished Linux proc entries as stopped 2026-10-18 16:40:43 +08:00
Rudy Celekli da673d3b5a types: annotate spreadsheet column offsets 2026-10-18 16:40:43 +08:00
Rudy Celekli af353fae73 fix(grep): preserve XLSX cell locators for literal tabs
Keep extracted spreadsheet text unchanged and carry actual cell start offsets into grep headers. Add real workbook GrepTool regressions and plain/empty-cell controls. Focused literal-source extraction/ContentPage replay passes; full GrepTool and required CI remain pending.
2026-10-18 16:40:43 +08:00
lux-liang a2f9fae8fe fix(documents): skip chart-only sheets when reading XLSX files 2026-10-18 16:22:53 +08:00
Xubin Ren 6330b748de test(shell): handle process reaping during PID checks 2026-10-18 15:55:24 +08:00
fhgffy 8adab28aee fix(web): handle case-insensitive image media types 2026-10-18 15:55:24 +08:00
Shoaib b4f381ca55 fix(media): keep upload filenames within the UTF-8 byte limit
The 80-character stem limit can still produce a filename longer than 255
bytes when a document name contains CJK characters or emoji. Adding the
upload ID then makes an otherwise valid document name fail on disk.

Retain the character limit and trim only stems that exceed the remaining
byte budget after the ID, separator, and extension. Decode at a character
boundary so the saved name remains valid Unicode.

Add file-write regressions for CJK and emoji document names.

Validation: 38 media and attachment-store tests; Ruff; BasedPyright;
import-boundary checks; git diff --check.
2026-10-18 15:23:07 +08:00
Xubin Ren c49d84b4e5 fix(whatsapp_agent): retain unsent scheduled results across reconnects 2026-10-18 14:49:49 +08:00
Xubin Ren 86f16ff493 fix(whatsapp_agent): clarify privacy and align current channel setup 2026-10-18 14:49:49 +08:00
Xubin Ren 5a0f2c2dc3 fix(whatsapp_agent): preserve poll continuity and partial delivery progress 2026-10-18 14:49:49 +08:00
Carmelo Campos 4d45564362 fix(whatsapp_agent): scope the bad-token heuristic away from media methods
The Developer Manual documents 400/100 as meaning "the API token is
present but not valid" only on endpoints without media. Media methods
share that same status and code with an unknown or expired media id and
with a length cap.

Classifying a 400 from `GET /media/<id>` as an invalid token would stop
the channel because one attachment expired, so media requests now pass
`media_endpoint=True` and the heuristic is skipped for them. A malformed
Authorization header (401/190) is still recognised on every endpoint.

Also corrects the state module docstring: the store keeps the cursor,
dedup window, creator identifier, and delivery receipts, and holds no
token material.
2026-10-18 14:49:49 +08:00