chengyongru
de8fbc3ad2
fix(api): keep unconfigured services running and preserve Docker onboarding
2026-10-19 13:02:26 +08:00
chengyongru
e20737a509
fix(docker): validate and atomically save first-boot configuration
2026-10-19 13:02:26 +08:00
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
chengyongru
74942bd190
test: replace false-green checks with behavioral coverage ( #6282 )
...
* test: replace false-green checks with behavioral coverage
* test: complete behavior-focused audit coverage
2026-10-18 03:16:25 +08:00
chengyongru
8f6a5594fb
refactor(session): centralize state ownership in SQLite ( #5943 )
...
* fix(session): move persistence off event loop
* refactor(session): isolate async persistence boundary
* refactor(session): keep a single session manager
* refactor(session): use stateless async adapters
* fix(session): serialize local persistence without file-lock contention
* refactor(session): own async persistence and snapshot commits
* refactor(session): narrow persistence changes to async adapters
* refactor(session): remove redundant async forwarding helpers
* fix(command): offload compact session persistence
* fix(session): adapt idle compaction to current main
* fix(webui): offload session metadata persistence
* refactor(session): centralize state ownership in SQLite
* fix(session): skip storage for non-recoverable followups
* test(webui): honor the full gateway event deadline
* perf(session): persist incremental changes and reuse owner snapshots
* test(agent): allow durable worker shutdown in burst test
* fix(gateway): drain session storage on Windows console shutdown
* fix(session): enforce bounded ownership and lifecycle-safe persistence
* fix: reject unresolved home paths and stabilize platform tests
* fix(session): preserve request context compatibility and owner-backed tests
* docs: focus configuration guide on user-facing behavior
* fix(session): adapt goal admission to async ownership after rebase
* fix(session): integrate current gateway and subagent contracts
* fix(session): align rebased workspace admission and async tests
* fix(session): support compatible SQLite schema evolution
* test(agent): use session owner in workspace context regressions
* test: stabilize Windows lifecycle and browser checks
* refactor(session): remove premature JSONL file export
* ci: bound Windows full-suite worker concurrency
* chore: remove session state refactor notes
* fix(session): queue writes and retain worker connections
* perf(webui): read detached metadata for session and task lists
* perf(agent): bound prompt preparation and local token counting
* docs: remove internal session storage guide
* perf(session): skip archived transcripts during idle scans
* fix(session): coordinate turns and isolate legacy session data
Bind WebUI input generations to the execution session and serialize idle
and SDK compaction with turns. Keep turn drafts through preparation so the
latest channel route persists.
Move imported workspace JSONL and checkpoints to durable private backups
before gateway admission, resuming cleanup after interruptions. Remove
committed child sessions when task creation is cancelled.
Validation: focused Python and frontend regressions, Ruff, BasedPyright,
import boundaries, WebUI build, and isolated gateway/browser flows.
* fix(agent): keep cancellation hooks independent of prompt preparation
* fix(session): preserve admission, delivery, and migration contracts
* fix(agent): preserve cancellation settlement after rebase
* fix(session): preserve request attribution through async ownership
2026-10-16 17:28:47 +08:00
chengyongru
328e933d36
refactor: isolate runtime contracts and enforce import boundaries ( #6166 )
...
* test: enforce Python import ownership boundaries
* test: protect client import boundaries and rehome shared UI contracts
* refactor: remove gateway and client dependency inversions
* fix: detect dynamic imports in conditional expressions
* refactor(tools): keep configuration contracts with their owners
* docs: keep design guidance focused on ownership and checks
* fix: preserve default threaded turn delivery
2026-10-13 13:56:28 +08:00
chengyongru
29f27dcf5d
ci: reduce test runtime while preserving coverage ( #6101 )
...
* ci: reduce test runtime while preserving coverage
* test: close cached usage stores before temporary directory cleanup
2026-10-08 13:03:56 +08:00
chengyongru
b0d28af321
feat(webui): show commit and prefill bug report diagnostics ( #6080 )
...
* feat(webui): show gateway commit in About settings
* feat(webui): prefill revision in bug reports
* fix(webui): use parentheses for commit details
* feat(webui): prefill gateway diagnostics in bug reports
* docs: remove About settings explanation
* fix(webui): prefill dedicated issue diagnostic fields
* fix(docker): include revision helper in dependency build layer
2026-10-06 18:53:50 +08:00
Xubin Ren
5c157eba8d
ci: expose stalled coverage tests and thread stacks
2026-09-26 19:19:21 +08:00
Xubin Ren
1bb712d348
ci: use baseline Bun directly for Windows TUI builds
2026-09-16 02:38:34 +08:00
chengyongru
a4fe3adf5c
ci: parallelize tests and filter unrelated jobs ( #5680 )
...
* ci: parallelize tests and filter jobs by paths
* ci: allow manual workflow validation
* ci: isolate terminal output tests from xdist
* ci: speed up Windows test jobs
* ci: use tracked dependency manifest for uv cache
* ci: run Docker checks for Python build configuration changes
2026-09-07 00:42:54 +08:00
Xubin Ren
b17f227eb9
fix(release): package TUI compliance materials
2026-08-17 20:56:10 +08:00
Xubin Ren
92727c99a8
ci(tui): cross-build releases on free runners
2026-08-17 20:56:10 +08:00
Xubin Ren
f5125f3c07
test(gateway): isolate lifecycle lock behavior
2026-08-17 20:56:10 +08:00
Xubin Ren
78aa29ffc9
test(ci): serialize Windows lifecycle checks
2026-08-17 20:56:10 +08:00
Xubin Ren
8104d9f702
test(ci): trace isolated Windows interrupt
2026-08-17 20:56:10 +08:00
Xubin Ren
e63ef5d211
test(ci): isolate Windows console tests
2026-08-17 20:56:10 +08:00
Xubin Ren
314f5dcf0b
test(ci): isolate Windows process checks
2026-08-17 20:56:10 +08:00
Xubin Ren
f43ae67e95
test(ci): trace Windows interrupt source
2026-08-17 20:56:10 +08:00
Xubin Ren
7ed37e5b70
test(tui): exercise Windows ConPTY boundary
2026-08-17 20:56:10 +08:00
Xubin Ren
a80993e413
test(tui): verify real terminal boundaries
2026-08-17 20:56:10 +08:00
Xubin Ren and Bingxi Zhao
406509aeb8
fix(tui): align CI with supported platforms
...
Wait for terminal setup before asserting signal cleanup on slower Intel runners. Do not advertise a Windows ARM64 sidecar while Bun lacks the FFI support OpenTUI requires there.
Co-authored-by: Bingxi Zhao <150592536+pancacake@users.noreply.github.com >
2026-08-17 20:56:10 +08:00
Xubin Ren
35f2d086b0
fix(tui): harden themes and platform coverage
2026-08-17 20:56:10 +08:00
Xubin Ren
4f12e15237
fix(tui): harden the interactive terminal experience
2026-08-17 20:56:10 +08:00
ce070c832d
feat(cli): add native TypeScript terminal UI
...
Rebuild the terminal client on OpenTUI while keeping the Python gateway as the single agent, session, tool, and memory runtime. Preserve a classic prompt fallback and publish version-matched native sidecars for supported platforms.
Co-authored-by: Bingxi Zhao <150592536+pancacake@users.noreply.github.com >
Co-authored-by: chengyongru <2755839590@qq.com >
2026-08-17 20:56:10 +08:00
Xubin Ren and yu-xin-c
498070d036
test(docker): separate host bwrap requirements
...
Co-authored-by: yu-xin-c <175149126+yu-xin-c@users.noreply.github.com >
2026-08-13 02:13:51 +09:00
Xubin Ren and yu-xin-c
b7f0ae95a9
test(docker): run bwrap check as final user
...
Co-authored-by: yu-xin-c <175149126+yu-xin-c@users.noreply.github.com >
2026-08-13 02:13:51 +09:00
Xubin Ren and yu-xin-c
b571d3b9ff
fix(docker): prevent privilege regain after bootstrap
...
Co-authored-by: yu-xin-c <175149126+yu-xin-c@users.noreply.github.com >
2026-08-13 02:13:51 +09:00
yu-xin-c
3741ecda0b
fix(docker): restore capabilities for privilege drop
2026-08-13 02:13:51 +09:00
chengyongru
55ecda275d
test: strengthen user-path coverage and CI gates ( #5308 )
2026-08-09 21:37:06 +08:00
chengyongru
757ad9c764
refactor: enforce BasedPyright strict type checking ( #5158 )
2026-07-29 21:37:11 +08:00
chengyongru
393d429e0a
fix(ci): stabilize and speed up CI ( #5145 )
2026-07-28 22:55:59 +08:00
chengyongru
9070d7489a
fix(ci): scope PR path detection to head changes
2026-07-28 20:24:52 +08:00
chengyongru
4b1547db7d
style(webui): unify settings and dark mode surfaces ( #5058 )
2026-07-23 17:47:20 +08:00
chengyongru
8423cf3eeb
fix(channels): complete dependency manifest migration ( #4995 )
...
* fix(channels): complete dependency manifest migration
* docs(docker): clarify custom uid dependency installs
* fix(channels): keep dependency preinstall internal
* refactor(channels): move dependency installer to scripts
* fix(docker): limit runtime write access
2026-07-20 15:24:57 +08:00
chengyongru
462a0dfb0f
refactor(channels): make built-in channels self-contained ( #4908 )
...
* refactor(channels): own setup and instance contracts
* refactor(channels): isolate management contracts
* refactor(channels): normalize activation contracts
* fix(channels): enforce management contracts
* refactor(channels): finish setup ownership migration
* fix(channels): harden management contracts
* fix(channels): enforce lazy loading and runtime ownership
* fix(feishu): make multi-instance startup idempotent
* fix(webui): render channel setup contracts cleanly
* fix(feishu): stop websocket clients cleanly
* fix(channels): enforce persistence and activation gates
* fix(channels): preserve global feature action scope
* fix(channels): apply defaults for single plugins
* fix(channels): enforce management contract boundaries
* refactor(feishu): remove identity helper indirection
* fix(channels): preserve management setup contracts
* refactor(channels): generalize instance settings UI
* refactor(channels): package channel plugins with web UI metadata
* refactor(channels): make built-ins self-contained packages
* test(channels): colocate tests with channel packages
* fix(dingtalk): use official brand icon
* feat(channels): colocate webui translations
* docs(channels): clarify plugin ownership
* test(exec): remove output wait race
* refactor(channels): unify plugin descriptors
* fix(channels): enforce descriptor-owned contracts
* refactor(channels): finish package-owned plugin setup
* refactor(channels): use repository-owned packages only
* fix(channels): self-describe dependencies and runtime state
* fix(channels): warn about legacy entry points
2026-07-19 23:30:49 +08:00
chengyongru
2116e32013
test: speed up CI and harden the suite
2026-07-15 00:18:37 +08:00
chengyongru
905da8e34a
ci(webui): verify npm and bun lockfiles
2026-07-14 23:16:21 +08:00
chengyongru
cd1fb61eb5
ci: relax webui install lock check
2026-06-27 11:04:11 +08:00
chengyongru
e79cb816e3
ci: pin bun for webui job
2026-06-27 11:04:11 +08:00
chengyongru
64901be67f
test: harden webui and gateway checks
2026-06-27 11:04:11 +08:00
chengyongru
2d86094fc7
ci: skip docs-only changes
2026-06-18 22:47:43 +08:00
chengyongru
6e6470daa0
docs: remove nightly branch guidance
2026-06-08 16:03:24 +08:00
Xubin Ren
c0d4f012c8
test(cli): cover CLI Apps on Windows CI
2026-05-23 00:47:28 +08:00
Xubin Ren
c018c3fb6a
chore(release): bundle webui into wheel and prep 0.2.0
2026-05-16 13:38:11 +00:00
Xubin Ren
897eedaaa7
chore(ci): update Python version in CI workflow to focus on supported runtimes 3.13 and 3.14
2026-05-16 04:15:58 +00:00
Xubin Ren and Cursor
4f1faea90c
ci: optimize Test Suite workflow (safe subset)
...
Re-applies the safe portion of c01f8599 after the revert in 2e8e674e .
Drops the uv cache which broke last time because uv.lock is gitignored
in this repo, and keeps lint as a step inside the test job (matching
the pre-c01f8599 layout).
What's added (all metadata-only, no external dependencies):
- concurrency: cancel superseded runs on the same ref
- permissions: tighten GITHUB_TOKEN to contents: read
- timeout-minutes: 20 to bound runaway jobs
- fail-fast: false so all matrix combinations surface failures
- matrix conditional: PRs run Linux x {3.11, 3.14} for fast feedback;
push to main/nightly still runs the full 2-OS x 4-Python matrix
What's intentionally NOT added (each removed for a reason):
- uv cache: depends on uv.lock which is gitignored
- separate lint job: kept inline as a step, matches original
- workflow_dispatch / paths-ignore: scope creep, not needed now
All jobs continue to run on standard GitHub-hosted runners
(ubuntu-latest, windows-latest), keeping CI within the free tier.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-09 08:27:46 +00:00
Xubin Ren and Cursor
2e8e674e38
revert(ci): restore original Test Suite workflow
...
The optimized workflow in c01f8599 set astral-sh/setup-uv@v4 with
cache-dependency-glob: "uv.lock", but uv.lock is gitignored in this
repo, so the hosted runner's checkout never contains it and the
Install uv step fails with:
Error: No file matched to [uv.lock], make sure you have
checked out the target repository
Reverting the workflow to the pre-c01f8599 version to unbreak CI.
The "Modifying CI Workflows" section added to CONTRIBUTING.md in the
same commit is left in place; it documents general guidance and is
independent of this specific implementation choice.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-09 08:22:09 +00:00
Xubin Ren and Cursor
c01f85995f
ci: optimize Test Suite workflow and document free-tier rule
...
Workflow changes (.github/workflows/ci.yml):
- Add concurrency to cancel superseded runs on the same ref
- Enable uv dependency caching keyed on uv.lock
- Split lint into a dedicated job; gate test on lint via needs
- Split matrix: PRs run Linux x {3.11, 3.14} for fast feedback;
push to main/nightly still runs the full 2-OS x 4-Python matrix
- Add fail-fast: false so all platforms surface failures together
- Add timeouts (lint: 5m, test: 20m) to bound runaway jobs
- Tighten GITHUB_TOKEN to contents: read
Docs (CONTRIBUTING.md):
- Add a short "Modifying CI Workflows" section so contributors know
to stay within standard runners / no metered storage / no paid
actions before touching .github/workflows/
All jobs continue to run on standard GitHub-hosted runners
(ubuntu-latest, windows-latest), keeping CI within the free tier.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-09 08:15:27 +00:00
yorkhellen
4773589685
fix: F821 undefined name errors in channels
2026-05-07 13:07:22 +08:00