暂无描述
查找文件
YokiiroBW 33ac5a3ba8
一些检测仍在等待运行
ci / Portable quality checks (push) Waiting to run
ci / Windows Tauri build (push) Waiting to run
fix(protocol): reconcile restated blocks instead of re-showing them
Repairs two commits that I pushed with a failing gate.

64dab45 treated every `streaming: false` plain frame as a new segment.
That is wrong half the time: AstrBot sends both a block that restates
what the delta stream already carried and a block carrying text the
deltas never delivered, sometimes in the same reply — which is exactly
what the frame-trace fixtures in astrbot_client.rs were built to tell
apart, and I had written those fixtures myself. Treating a restatement as
new content would have shown it twice, and completing each block on
arrival left the two R2 sentinels with no open message to finalize, so a
truncated body and a cancellation both reported "stop".

Both the non-streaming plain frames and the complete frame now go through
one `reconcile`: emit only the byte-exact tail beyond what was shown, or
nothing if the text has already been shown allowing for different
whitespace, or open a message of its own if it diverges. Fixes a real
defect this exposed in `adopt_message_id`, which assigned the server's
bare id back over an active id that carried a reopen suffix, merging
blocks that had just been separated.

9b2ec64 added petEntry.test.ts importing node:fs. tsconfig.app.json sets
an explicit `types` array so Node globals are absent, and typecheck and
build both failed. Now imported as raw text through vite, rather than
adding Node's types to the compilation that covers the browser code.

Protocol tests 12 -> 19. Every new assertion was checked against a
deliberate regression, and the two that survived their first check —
dropping the byte-exact prefix case and dropping the whitespace-only
guard — now have tests that fail without them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:49:49 +08:00
.forgejo/workflows ci(forgejo): add portable and windows quality workflows 2026-07-18 20:43:20 +08:00
assets feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
crates fix(protocol): reconcile restated blocks instead of re-showing them 2026-07-27 05:49:49 +08:00
docs fix(pet): read stored preferences and stop the pet from stealing focus 2026-07-27 05:25:27 +08:00
src fix(protocol): reconcile restated blocks instead of re-showing them 2026-07-27 05:49:49 +08:00
src-tauri fix(pet): read stored preferences and stop the pet from stealing focus 2026-07-27 05:25:27 +08:00
tests feat(chat): give the conversation the height the header was using 2026-07-27 03:59:29 +08:00
.editorconfig chore(repo): initialize repository and ignore rules 2026-07-18 20:22:52 +08:00
.gitignore chore(git): ignore machine-local claude config 2026-07-27 00:59:55 +08:00
.node-version feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
.npmrc feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
.prettierignore chore(prettier): ignore machine-local claude settings 2026-07-27 00:00:48 +08:00
AGENTS.md docs(project): add architecture and implementation specifications 2026-07-18 20:21:19 +08:00
AstrBot_Desktop_Codex_Forgejo_Predevelopment_Workflow.md docs(project): add architecture and implementation specifications 2026-07-18 20:21:19 +08:00
Cargo.lock feat(desktop): complete Q9 chat and stability increment 2026-07-21 14:43:14 +08:00
Cargo.toml feat(desktop): complete Q9 chat and stability increment 2026-07-21 14:43:14 +08:00
CHANGELOG.md fix(pet): read stored preferences and stop the pet from stealing focus 2026-07-27 05:25:27 +08:00
eslint.config.js feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
index.html feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
package.json feat(desktop): complete Q9 chat and stability increment 2026-07-21 14:43:14 +08:00
pet.html fix(pet): read stored preferences and stop the pet from stealing focus 2026-07-27 05:25:27 +08:00
playwright.config.ts test(p00): add frontend browser rust and windows checks 2026-07-18 20:42:40 +08:00
pnpm-lock.yaml feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
pnpm-workspace.yaml feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
README.md docs(p00): record spike results and unresolved boundaries 2026-07-18 21:00:49 +08:00
rust-toolchain.toml feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
tsconfig.app.json feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
tsconfig.json feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
tsconfig.node.json feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
vite.config.ts fix(pet): read stored preferences and stop the pet from stealing focus 2026-07-27 05:25:27 +08:00

AstrBot Desktop

AstrBot Desktop is a Windows companion and local-assistance client built with Tauri 2, React, TypeScript, Vite, and Rust.

The MVP supports two isolated active AstrBot connection slots:

  • companion for chat, proactive messages, voice, and game companionship;
  • operations for user-authorized, policy-controlled diagnostics and recoverable file operations.

Security boundaries

  • Credentials remain in Windows secure storage and are never exposed to React.
  • Server tool requests are proposals; the Rust policy layer makes the final decision.
  • The application does not provide arbitrary PowerShell, CMD, or shell execution.
  • NAS transfers use plan -> dry run -> copy -> verify -> commit and preserve source files on failure.

Current phase

The repository is in the P00 bootstrap and high-risk Spike phase. See docs/implementation-plan.md and docs/progress.md.

Authoritative documents

  • AGENTS.md
  • docs/01_Architecture_Design.md
  • docs/02_Codex_Implementation_Tasks.md
  • AstrBot_Desktop_Codex_Forgejo_Predevelopment_Workflow.md

Development prerequisites

  • Windows 11
  • Node.js and pnpm
  • Rust stable with the MSVC target
  • Visual Studio 2022 Build Tools with Desktop development with C++
  • WebView2 Evergreen Runtime

Local commands

pnpm install --frozen-lockfile
pnpm check:frontend
pnpm test:e2e
pnpm rust:fmt
pnpm rust:clippy
pnpm rust:test
pnpm rust:check
pnpm tauri:dev
pnpm tauri:build

On Windows, Cargo build output can be redirected away from a NAS workspace:

$env:CARGO_TARGET_DIR = "$env:LOCALAPPDATA\Temp\AstrBot-Desktop-target"

The 30-minute connection soak and the controlled Windows UIA/capture smoke are ignored by the normal suite and must be invoked explicitly as documented in tests/README.md. The UIA/capture smoke opens only a generated, non-sensitive standard dialog and never writes captured pixels to disk.

P00 results and unresolved environment boundaries are recorded in docs/spikes and docs/progress.md.