chengyongru
a4d2430140
refactor: remove redundant comments and docstrings ( #6527 )
...
* refactor: remove redundant comments and docstrings
* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00
chengyongru and B Rishabh Rao
1c28b20c7e
fix(gateway): reuse Windows-safe atomic lease I/O
...
Adopt the read_atomic_bytes/replace_atomic integration proposed by
balabommablock-cpu, preserving UTF-8 decoding and the existing lease locks.
Exercise a real snapshot reader across an actual replacement instead of
only checking helper calls.
Adapted-from: https://github.com/balabommablock-cpu/nanobot/commit/8d671457935e44579f37ceffe6dbaf61b36b00be
Related to HKUDS/nanobot#6514
Co-authored-by: B Rishabh Rao <262621052+balabommablock-cpu@users.noreply.github.com >
2026-10-29 13:11:21 +08:00
chengyongru and BBTAN-bot
2853287ed7
perf(gateway): avoid unchanged client lease writes
...
Keep status snapshots read-only and only persist monitor cleanup when
client records change, while retaining atomic orphan shutdown decisions.
Related to HKUDS/nanobot#6514
Co-authored-by: BBTAN-bot <255698778+BBTAN-bot@users.noreply.github.com >
2026-10-29 13:11:21 +08:00
chengyongru and snailak
c758ce8f40
fix(runtime): stop Windows identity polling memory leak
...
Reuse the FILETIME structure and cached kernel32 bindings rather than creating a new ctypes pointer type for every identity query. Python before 3.14 retains those types in its global pointer cache, so idle WebUI and gateway polling could accumulate gigabytes.
Keep each identity query live and preserve the native HANDLE signatures and handle cleanup. Add a native Windows regression that checks identity stability and a bounded set of pointer types, including on Python 3.14 where ctypes no longer retains the types globally.
Fixes #6506
Co-authored-by: snailak <141750781+snailak@users.noreply.github.com >
2026-10-28 11:49:26 +08:00
Xubin Ren and chengyongru
fbb61a373f
feat(update): integrate managed installs and recoverable in-app updates ( #6168 )
...
Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.
Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.
This code integration does not publish packages, enable signing or advance the public update channel.
Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com >
2026-10-21 19:16:56 +08:00
chengyongru
73a55e0b2f
fix(gateway): request graceful Windows shutdown ( #6353 )
...
* fix(gateway): request graceful Windows shutdown
* docs(cli): simplify Windows gateway stop guidance
* test(gateway): compare native Windows owner SIDs
2026-10-21 11:05:30 +08:00
Xubin Ren
b702ac633f
test(gateway): publish child claim markers atomically
2026-10-18 22:11:14 +08:00
chengyongru
8a7ca8a654
fix: improve log reliability and correlation
2026-09-21 17:36:24 +08:00
chengyongru
d8b4f612f2
fix(gateway): recover degraded WebSocket listener ( #5544 )
...
* fix(gateway): recover degraded WebSocket listener
* test(websocket): model listener readiness in startup stub
* fix(tui): keep launcher alive during gateway recovery
* test(websocket): colocate listener lifecycle coverage
2026-08-27 10:23:35 +08:00
Xubin Ren
2cdfba38b2
fix(runtime): preserve interrupted turns on gateway exit
2026-08-24 00:58:04 +08:00
Xubin Ren
12029f8812
feat(runtime): add user-controlled turn recovery
2026-08-24 00:58:04 +08:00
chengyongru
df14259717
perf(tui): reduce cold-start latency
2026-08-18 16:28:46 +08:00
chengyongru
369a3443eb
fix(gateway): allow Windows launcher PID handoff
2026-08-18 11:51:14 +08:00
Xubin Ren
99d5fa2908
fix(gateway): preserve runtime identity compatibility
2026-08-18 03:21:00 +08:00
Xubin Ren
19ad1adfe7
fix(gateway): stabilize process identities
2026-08-18 03:21:00 +08:00
Xubin Ren
7838e244ba
test(gateway): track the claimed process identity
2026-08-17 20:56:10 +08:00
Xubin Ren
6955d709d6
test(gateway): trust claimed readiness marker
2026-08-17 20:56:10 +08:00
Xubin Ren
b52660760c
test(gateway): harden cross-process probes
2026-08-17 20:56:10 +08:00
Xubin Ren
dc3e3c1a2a
fix(gateway): prevent lifecycle races
2026-08-17 20:56:10 +08:00
Xubin Ren
c671acd6a8
fix(gateway): preserve shared runtime identity
2026-08-17 20:56:10 +08:00
Xubin Ren
d6847b0107
fix(runtime): recover orphaned gateway clients
2026-08-17 20:56:10 +08:00
Xubin Ren
eafc0bc6eb
fix(gateway): serialize shared runtime lifecycle
2026-08-17 20:56:10 +08:00
Xubin Ren
78802c4c4e
test(runtime): isolate POSIX identity fixture
2026-08-17 20:56:10 +08:00
Xubin Ren
089df021d1
fix(runtime): keep process probes host-safe
2026-08-17 20:56:10 +08:00
Xubin Ren
ddd3b78ed1
test(ci): isolate cross-platform gateway lifecycle
2026-08-17 20:56:10 +08:00
Xubin Ren
ed4740638b
test(gateway): simplify repeated start coverage
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
2545cae110
fix(runtime): scope Windows process termination
2026-08-17 20:56:10 +08:00
Xubin Ren
301d039fbb
test(gateway): make concurrency check deterministic
2026-08-17 20:56:10 +08:00
Xubin Ren
05acd79466
fix(gateway): probe Windows clients safely
2026-08-17 20:56:10 +08:00
Xubin Ren
cd6a11b3c5
fix(gateway): harden shared client lifecycle
2026-08-17 20:56:10 +08:00
Xubin Ren
19be5be1c0
refactor(gateway): scope foreground registration
2026-08-17 20:56:10 +08:00
Xubin Ren
014eab5f6a
fix(gateway): register foreground instances
2026-08-17 20:56:10 +08:00
Xubin Ren
b8333a2d7e
fix(cli): make gateway persistence explicit
2026-08-17 20:56:10 +08:00
Xubin Ren
74c11e5d28
fix(cli): share on-demand gateway lifecycle
2026-08-17 20:56:10 +08:00
Xubin Ren
2f78f7fbc5
feat(tui): make follow-up queue explicit
2026-08-17 20:56:10 +08:00
Xubin Ren
fe0717b385
feat(webui): add guided setup flows
...
* feat(channels): add guided setup flows
* test(channels): preserve setup config values
* fix(channels): reflect saved setup state
* refactor(channels): simplify setup state metadata
* fix(channels): harden setup lifecycle
* refactor(channels): centralize setup contracts
* fix(channels): route setup actions through webui shim
* fix(channels): adapt settings for compact screens
* fix(models): preserve default preset display
* feat(models): add curated Codex catalog
* fix(webui): stop attached gateway on interrupt
* fix(webui): simplify apps catalog
* docs(webui): clarify apps and runtime features
* feat(settings): add guided capability setup
* fix(webui): harden setup and managed services
* test: keep managed runtime checks portable
* test: scope POSIX runtime coverage
* fix(webui): simplify file settings
* feat(files): bundle document reading
* fix(webui): harden setup request boundaries
* fix(webui): prevent channel setup status squeeze
* fix(settings): group provider compatibility aliases
* refactor(settings): remove redundant setup surfaces
* fix(webui): harden guided setup lifecycle
* fix(webui): preserve channel setup compatibility
2026-07-13 13:11:46 +08:00
Xubin Ren
83e4bae7db
fix(gateway): skip ctrl-break wait when signal is rejected
2026-07-04 21:25:46 +08:00
xcao
58b5bb9204
fix(gateway): handle Windows stop fallback
2026-07-04 21:25:46 +08:00
chengyongru
bc1df49201
fix(gateway): handle lifecycle edge cases
2026-06-24 10:29:08 +08:00
Xubin Ren
e3c9aff41e
feat(gateway): add background and service controls
2026-06-22 14:48:49 +08:00