Commit Graph
245 Commits
Author SHA1 Message Date
chengyongru 5eb160099b test(cli): reject proxies on unsupported Azure transport 2026-10-10 01:33:02 +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 5be1e589f2 feat(providers): share Responses backend with Codex WebSocket continuation (#6096)
* feat(codex): continue sessions over Responses WebSocket

* fix(codex): retain API errors with repeated handshake headers

* test(codex): assert attachment paths before JSON escaping

* refactor(providers): share Responses transport and state backend

* fix(grok): update subscription client version

* docs: keep Codex configuration focused on user settings
2026-10-08 11:54:23 +08:00
chengyongru 6ff96f2a8f feat(subagent): add session-owned task messaging and cancellation (#5985)
let's go!
2026-10-05 05:16:33 +08:00
Xubin Ren f4e45c98d7 fix(remote): discover cloud login accounts before asking users 2026-10-02 11:36:34 +08:00
Xubin Ren e59c2bf79a fix(remote): detect Tencent public address and clarify this-server prompts 2026-10-02 11:36:34 +08:00
Xubin Ren 92b0f1d285 fix(remote): treat declined device authorization as cancellation 2026-10-02 11:36:34 +08:00
Xubin Ren 3ac60f0780 fix(remote): guide protected-config pairing through explicit admin consent 2026-10-02 11:36:34 +08:00
Xubin Ren 192ca6e49e feat(webui): complete remote pairing and connection recovery 2026-10-02 11:36:34 +08:00
chengyongru fc3effe39d fix(cli): avoid duplicate WebUI config announcement (#5988) 2026-09-30 15:40:26 +08:00
chengyongru 4a7ad00e4f fix(tokens): warm fallback tokenizer in background (#5861)
* fix(tokens): keep fallback token estimation offline

* fix(tokens): warm fallback tokenizer in background

* test(tokens): isolate agent fixtures from tokenizer readiness

* test(tokens): keep Codex pressure fixtures within byte budget

* docs: remove manual wrapping from troubleshooting prose
2026-09-28 13:50:55 +08:00
chengyongru 6eccc2859a test: consolidate repetitive cases across the suite 2026-09-25 14:28:21 +08:00
chengyongru 1457904e8d fix(cli): shorten session storage startup guidance 2026-09-24 13:38:57 +08:00
chengyongru 839992630c fix(cli): explain session storage conflicts before startup 2026-09-24 13:38:57 +08:00
chengyongru ad52fa97c2 fix(cli): reuse WebUI model discovery in onboarding 2026-09-24 13:07:42 +08:00
chengyongru b669c2036c refactor(agent): unify session message admission 2026-09-17 22:18:38 +08:00
Xubin Ren d8efb852da build: bundle native TUI in platform wheels 2026-09-16 02:38:34 +08:00
Xubin Ren d24ae06117 fix(release): verify TUI materials before tagging 2026-09-16 01:30:47 +08:00
chengyongru aa257a705e perf: reduce streaming text processing and classic CLI redraws (#5728)
* perf: skip tag parsing for ordinary streamed text

* perf: coalesce classic CLI stream refreshes
2026-09-15 11:48:40 +08:00
chengyongru bfb4f021ed test: align automation integration coverage with current behavior 2026-09-13 05:43:05 +08:00
chengyongru f8c1f2ede0 fix(webui): make headless login self-explanatory (#5735)
* fix(webui): guide headless login

* fix(webui): correct SSH handoff and password fallback
2026-09-13 05:01:13 +08:00
chengyongru 73410e0217 fix: stream internal model calls with idle timeouts (#5730)
* fix: stream internal model calls with idle timeouts

* fix(providers): reject streams without terminal events
2026-09-11 13:06:43 +08:00
Xubin Ren ddf095938e fix(cli): make Desktop attachment checks portable
Avoid a false-positive session-prefix match in the architecture guard without changing endpoint validation. Pass a null pointer as an integer to the native Windows pipe fixture, and name oversized-input cases explicitly so pytest does not exceed the Windows environment-variable limit.

Keep the real owner-authenticated roundtrip and oversized-payload assertions. Local CLI, architecture and gateway checks pass; native Windows verification is rerun in CI.
2026-09-08 10:04:15 +08:00
Xubin Ren d641026fc8 fix(cli): simplify Desktop picker controls [skip ci]
Remove numeric shortcuts and their labels so target selection has one visible navigation model: arrow keys followed by Enter. Keep Ctrl+C cancellation and attachment behavior unchanged.

Update the CLI guide and real-key regression tests to verify that 1 and 2 no longer move the highlight.
2026-09-08 10:04:15 +08:00
Xubin Ren cf74d1c7e5 fix(cli): make Desktop target selection keyboard navigable [skip ci]
Reuse the existing questionary selector so users can highlight a target with arrow keys and confirm with Enter. Retain numeric shortcuts and the current Python executable label without changing discovery or attachment behavior.

Keep cancellation fail-closed with exit code 130. Exercise real navigation, EOF and Ctrl+C through both CLI launchers so cancelling cannot start a Python backend or attach to Desktop. Document the controls.
2026-09-08 10:04:15 +08:00
Xubin Ren 9a594f74ff fix(cli): isolate Desktop compatibility probes [skip ci]
An older terminal can ignore the protocol probe flag and consume inherited gateway credentials or terminal input. Scrub its TUI environment and close stdin before probing, then pass only the selected Desktop resolver metadata to the compatible client.

Validate the complete ready frame before opening mutation gates, not just its identity metadata. Add failing-before regressions and scope the existing recovery test process stub so real lease cleanup remains testable without changing runtime ownership.
2026-09-08 10:04:15 +08:00
Xubin Ren 48e7c4f697 feat(cli): attach terminal clients to the selected Desktop [skip ci]
NAN-104 requires terminal chat and browser attachment without granting a client ownership of Desktop's gateway. Resolve bounded short-lived credentials over authenticated current-user IPC, pin both Desktop and gateway identities, and reject replacement instances or incompatible clients before any mutation.

Reuse the existing TUI artifact resolver behind a narrow Desktop-only entrypoint, keep credentials out of argv/environment/files, and preserve Python-mode reconnect and gateway leases. Add protocol, real-gateway, and anonymous IPC regression coverage; matching native-host and Windows acceptance remain release gates.
2026-09-08 10:04:15 +08:00
Xubin Ren b373a95f5c fix(cli): protect Windows browser credential handoff [skip ci]
Windows browser dispatch can expose bootstrap credentials through BROWSER or native handler command arguments. Send the URL to an isolated helper over stdin and open an owner-only ACL-protected redirect file instead, with no raw-URL fallback.

Keep file ownership and bounded cleanup independent of CLI exit, reject unsafe storage, and cover shared callers, native API contracts, error paths and lifecycle regressions. Document the intentional Windows compatibility tightening; native Windows browser and ACL verification remains pending.
2026-09-08 10:04:15 +08:00
Xubin Ren 29bf9f9ca7 fix(cli): keep macOS bootstrap URLs out of argv [skip ci]
Browser bootstrap URLs contain credentials. Deliver them through native Launch Services instead of the open command, and fail without a subprocess or BROWSER fallback so shared WebUI callers cannot expose the URL in process arguments or errors.

Cover encoding, native failures, resource cleanup and Desktop dispatch with regression tests. Preserve existing browser behavior and leave TUI and non-macOS handoff changes outside this scoped repair.
2026-09-08 10:04:15 +08:00
Xubin Ren dba77b5e74 fix(cli): harden attach-only Desktop selection [skip ci]
Preserve current Python startup when Desktop is not ready before target selection, while refusing fallback after the user chooses Desktop. Keep retained launchers and virtual environment labels consistent.

Authenticate Windows pipe ownership before I/O and drain cancelled operations before releasing buffers. Add entrypoint, failure-path, transport and credential-safe browser regressions without changing backend lifecycle or configuration.
2026-09-08 10:04:15 +08:00
Xubin Ren 8fe0c62d68 feat(cli): add attach-only Desktop target selection
Keep Python and Desktop installations independent while allowing bare interactive commands to choose a running Desktop target. Validate the versioned per-user rendezvous before opening its WebUI, and preserve every explicit Python CLI invocation.

Desktop TUI attachment remains unavailable until its capability contract is published, so that selection fails explicitly without starting, replacing, or stopping a backend.

Refs NAN-104.

[skip ci]
2026-09-08 10:04:15 +08:00
chengyongru 0b1fa0c3e4 fix(webui): resume incomplete model setup in the browser 2026-09-07 14:20:06 +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
chengyongru 192e2e90dc refactor(events): unify scoped runtime notifications across clients (#5670)
* refactor(events): unify scoped runtime notifications across clients

* style(tests): sort auto-compaction event imports

* refactor(events): scope connections and remove retry callback plumbing

* docs: remove runtime notification design write-up

* refactor(bus): route operation events through the message bus

* fix(channels): isolate outbound sends by destination

* style(events): group shared notification imports

* refactor(events): converge runtime and hook delivery on MessageBus

* test(events): migrate fixtures to unified message bus
2026-09-06 02:11:19 +08:00
chengyongru c08172a641 fix(cli): skip WebUI bundle check in dev mode 2026-09-05 22:39:55 +08:00
chengyongru d81aa5a4ab refactor(agent): let runner own context compaction (#5568)
* refactor(agent): consolidate accepted history under pressure

* fix(agent): align provider and session compaction

* refactor(agent): simplify runner context compaction

* refactor(agent): remove background token consolidation

* fix(agent): keep injected transcript messages distinct

* refactor(agent): unify native compaction summaries

* fix(agent): preserve native compaction boundary

* fix(agent): unify context compaction paths

* fix(agent): preserve exact compaction request boundaries
2026-09-02 18:05:54 +08:00
chengyongru 6cd7063682 refactor(agent): defer transcript assembly to runner (#5608)
* refactor(agent): defer transcript assembly to runner

Keep persisted history and the fresh turn as explicit inputs until the Runner assembles the provider transcript. Preserve ContextBuilder and direct AgentRunner compatibility while making the save boundary structural.

Refs NAN-81.

* fix(providers): preserve mixed adjacent user content
2026-08-31 00:06:15 +08:00
Xubin Ren 2c87143f77 fix(cli): preserve gateway log stream boundaries 2026-08-29 23:03:23 +08:00
Xubin Ren d7df2726de fix(cli): stream gateway logs in WebUI launcher 2026-08-29 23:03:23 +08:00
Xubin Ren 2389ab1f5a feat(providers): add Grok 4.6 subscription model 2026-08-29 21:22:20 +08:00
Xubin Ren 1fe14f2ee6 fix(cli): preserve root shell completion 2026-08-29 11:26:50 +08:00
Xubin Ren 7fc90ca6aa feat(cli): make nanobot launch the terminal agent 2026-08-29 11:26:50 +08:00
chengyongru 3a62b0b744 fix(tui): surface chat connection failures (#5543)
* fix(tui): surface chat connection failures

* fix(tui): keep connection copy implementation-agnostic

* test(tui): avoid millisecond timing boundary

* fix(tui): use gateway health for connection status

* fix(tui): use product-level readiness copy
2026-08-27 11:37:30 +08:00
Xubin Ren 2113870e27 fix(cli): foreground the WebUI browser 2026-08-27 10:45:40 +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
chengyongru 4f6c0aedfa refactor(agent): make run usage explicit (#5546)
* refactor(agent): make run usage explicit

* fix(api): capture usage per run
2026-08-26 15:18:53 +08:00
chengyongru 0c84725b13 fix(gateway): retry MCP readiness before turns (#5535) 2026-08-26 11:29:48 +08:00
chengyongru 9895c23cb5 refactor(providers): define typed usage contract 2026-08-25 01:04:25 +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