Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9e1b402
docs: Plan desktop HTML page annotations
Nov 18, 2026
edd093a
docs: Track HTML annotation platform acceptance
Nov 18, 2026
8f6ec6d
test: Add long-page HTML annotation acceptance fixture
Nov 18, 2026
5de67d6
Implement explicit document-bound full-page capture (#198)
Nov 18, 2026
f0be44e
feat: Add trusted single-element page annotations (#194)
Nov 18, 2026
0292036
Add atomic receiver receipts for annotation batches
Nov 18, 2026
be66b00
docs: Record integrated annotation checks and native smoke failure
Nov 18, 2026
cdad4ad
Record focused native tests and smoke failure diagnosis
Nov 18, 2026
57f736a
feat: Preserve text nodes in page annotation previews (#196)
Nov 18, 2026
77eac11
feat: Support multiple annotation targets and one page region (#197)
Nov 18, 2026
c180d90
feat: Add reversible page annotation style previews (#195)
Nov 18, 2026
0920b48
Implement reliable page annotation batch sender
Nov 18, 2026
4a29c7d
Guard native capture smoke results and relocate shared probe
Nov 18, 2026
8f2e060
Extract native capture boundaries and restore standards gates
Nov 18, 2026
6f6b491
test: follow extracted native browser ownership paths
Nov 18, 2026
aca336e
test: cover annotation browser-to-queue integration seams
Nov 18, 2026
f863e0f
docs: fix annotation integration helper command path
Nov 18, 2026
7aeb4e9
Fix annotation receipt reconciliation and owned text previews
Nov 18, 2026
6b26633
Guard annotation navigation and retain invalid exact targets
Nov 18, 2026
6025ff1
Cancel held annotation requests through UI-owned lifecycle deadlines
Nov 18, 2026
fca9bdc
Preserve WebView2 full-page capture scrollbar layout
Nov 18, 2026
0ce6f65
test: verify annotation reconciliation and composed text seams
Nov 18, 2026
4b0c00c
docs: qualify native incremental annotation evidence
Nov 18, 2026
adb3cca
test: mirror annotation submission lease lifecycle in integration seam
Nov 18, 2026
103101c
Fix frozen annotation capture validation and resource retirement
Nov 18, 2026
372be4a
Fix annotation receipt test to classify real user messages
Nov 18, 2026
39cd01d
docs: record reliable 4b0 validation and pending integrated reruns
Nov 18, 2026
5135837
docs: record final annotation validation and review evidence
Nov 18, 2026
bc10d7f
Merge remote-tracking branch 'origin/master' into codex/html-page-ann…
Nov 19, 2026
b5a2d5c
Merge branch 'master' of https://github.com/tmoonlight/acecode into c…
Nov 21, 2026
9da82a6
docs: 批注重设计文档基线
Nov 22, 2026
44c3fad
wip: codex visual parity, style panel, native overlay geometry
Nov 22, 2026
7a9eb9d
docs: T0 验证结论(#208)
Nov 22, 2026
fd50eeb
refactor: 批注记录上提到会话级 store(#209)
Nov 22, 2026
6d3aefd
feat: redesign HTML page annotations around session records
Nov 22, 2026
896b19d
refactor: split shared agent browser helpers to keep the size ratchet
Nov 22, 2026
51f3e10
Merge remote-tracking branch 'origin/master' into codex/html-page-ann…
Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmake/acecode_source_paths.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ set(ACECODE_WINPTY_AGENT_LOCATION_SOURCE "${CMAKE_SOURCE_DIR}/src/base/pty/winpt
set(ACECODE_DEEPIN_WINDOW_EFFECTS_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/deepin_window_effects.cpp")
set(ACECODE_DESKTOP_MAIN_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/main.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_cookie_bridge.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_state_json.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/page_annotation_bridge.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/open_in_explorer_bridge.cpp")
set(ACECODE_MACOS_CLI_LAUNCHER_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/macos_cli_launcher.cpp")
set(ACECODE_DESKTOP_SPLASH_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/splash_screen.cpp")
Expand All @@ -15,9 +17,13 @@ set(ACECODE_DESKTOP_PET_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/desktop_pet
set(ACECODE_DESKTOP_PET_MAC_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/desktop_pet_mac.mm")
set(ACECODE_DESKTOP_LINUX_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/linux_desktop.cpp")
set(ACECODE_AGENT_BROWSER_HOST_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_host.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_capture_cdp.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_capture_layout.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_native_commands_win.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_windows_helpers.cpp"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_host_common.cpp")
set(ACECODE_AGENT_BROWSER_HOST_MAC_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_host_mac.mm"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_capture_mac.mm"
"${CMAKE_SOURCE_DIR}/src/apps/desktop/agent_browser_macos_helpers.mm")
set(ACECODE_IOS_SIMULATOR_VIEW_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/ios_simulator_view.cpp")
set(ACECODE_IOS_SIMULATOR_VIEW_MAC_SOURCE "${CMAKE_SOURCE_DIR}/src/apps/desktop/ios_simulator_view_mac.mm")
Expand Down
192 changes: 190 additions & 2 deletions docs/agent-browser.md

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions docs/agents/issue-tracker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Issue tracker: GitHub

Issues and specs for this repo live as GitHub issues. Use the `gh` CLI for all operations.

## Conventions

- **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.
- **Read an issue**: `gh issue view <number> --comments`, filtering comments by `jq` and also fetching labels.
- **List issues**: `gh issue list --state open --json number,title,body,labels,comments`
- **Comment on an issue**: `gh issue comment <number> --body "..."`
- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
- **Close**: `gh issue close <number> --comment "..."`

Infer the repo from `git remote -v`; `gh` does this automatically when run inside a clone.

## Pull requests as a triage surface

**PRs as a request surface: no.**

## When a skill says "publish to the issue tracker"

Create a GitHub issue.

## When a skill says "fetch the relevant ticket"

Run `gh issue view <number> --comments`.
112 changes: 112 additions & 0 deletions docs/daemon-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,118 @@ whether a paste stayed inline or became a file. Expansion is also skipped when
the first non-empty composer piece is an inline pasted block.
Returns `202 {"queued":true}`.

#### Annotation batch receipt

Trusted annotation senders may opt into receiver idempotency by adding
`annotation_batch_id` (`[A-Za-z0-9_-]{1,128}`) to this ordinary messages endpoint:

```json
{
"annotation_batch_id": "annotation-batch-uuid",
"text": "Numbered targets, descriptions and old/new differences",
"attachments": [{"id": "att-prepared-full-page-image"}],
"client_message_id": "optional-client-message-id"
}
```

Only these four fields are allowed for a batch. Non-empty `text` is required;
the sender prepares and freezes the attachment before submitting. Batch IDs
are rejected on steer, interrupt and question-interjection paths. Ordinary
messages without `annotation_batch_id`, including source selections and
`client_message_id` reconciliation, retain their existing behavior.

First acceptance returns `202` with
`{"queued":true,"annotation_batch_id":"annotation-batch-uuid","duplicate":false}`.
An identical retry returns the same accepted ID and `duplicate:true`, with no
additional user turn or auto-title request. The sender must match the returned
ID to its frozen batch before acknowledging it. This acknowledges queue
admission, not model completion or a durable transcript write.

Identity is scoped to the receiving session's live AgentLoop. The receiver hashes
the complete parsed JSON request using SHA-256 (object key order and whitespace
do not matter; array order, field omission and all values do). Reuse the exact
original payload and attachment references on retry; changed payload under an
accepted ID returns `409 {"error":"annotation_batch_conflict"}`. Checking the ID,
remembering its fingerprint and enqueueing the ordinary Chat task share the
existing queue admission lock, including concurrent requests and busy turns.
Failed admission does not remember an ID. The fingerprint is computed before
prompt expansion, so retry comparison does not depend on changing workspace
context. Existing authentication, migration, attachment and mesh checks remain
in force before acceptance.

Each live receiver retains at most 1024 accepted batch fingerprints, including
completed turns. Records are never evicted to make room for new batches:
`503 {"error":"annotation_batch_capacity"}` rejects a new ID at the limit while
known identical retries still succeed. Other admission failures return
`503 {"error":"annotation_batch_unavailable"}` without a success receipt;
normal parse/security errors retain their existing status. Receipt state is
runtime-only and is lost when the receiving session is destroyed or the daemon
restarts; there is no restart-recovery guarantee. Do not retry an uncertain
batch against a recreated receiver as though its earlier receipt survived.

For an uncertain HTTP outcome, query only the existing receipt using
`POST /api/sessions/:id/messages?annotation_reconcile_only=1`. The query accepts
only literal `1`, and requires a valid annotation batch identity and payload as
defined above; other values, an ordinary non-batch body or malformed batch return
`400` (invalid query usage reports `invalid annotation_reconcile_only`). Send the
same frozen batch ID and exact original payload, including attachment references
and optional client identity. The query is transport metadata, not part of the
payload fingerprint. It is parsed before request side effects; existing
authentication, migration, attachment, mesh and receiver-lifetime checks still apply.

This mode never admits a new task or consumes an unknown ID, even at receipt
capacity. Within the existing queue admission lock:

- A known ID with the same fingerprint returns `202` with
`{"queued":true,"annotation_batch_id":"annotation-batch-uuid","duplicate":true}`.
- An unknown ID returns `404 {"error":"annotation_batch_not_accepted"}` without
a receipt ID, enqueueing work or remembering that identity.
- A known ID with a changed fingerprint returns
`409 {"error":"annotation_batch_conflict"}`.
- An unavailable receiver returns `503 {"error":"annotation_batch_unavailable"}`;
normal parse/security errors retain their existing status.

Ordinary POST without this query remains an admission attempt, not a safe
receipt-only lookup. The sender first reconciles every uncertain attempt. A
matching accepted receipt may be acknowledged even if the old target is now
invalid. Only an exact `404` with `annotation_batch_not_accepted` permits native
document/target revalidation followed, if valid, by a possible first ordinary
admission. Ambiguous lookup errors, malformed receipts and mismatched receipt IDs
must not authorize admission. Explicit original refusals
(`annotation_batch_unavailable`, `annotation_batch_capacity`,
`annotation_batch_conflict`) clear sender uncertainty and require native
revalidation before another ordinary attempt. All retries keep the frozen session,
connection, batch ID and payload; none recapture or reupload.

The desktop annotation sender freezes the initiating conversation, daemon connection,
sendable saved record IDs and serialized message before submission. It captures one
full-page PNG through the trusted native annotation command and uploads it with
`POST /api/sessions/:id/attachments`; the message references the returned attachment
ID, never a screenshot path. Description-only and differences-only records are
sendable; empty records are excluded. New annotations belong to the next batch.
The sender does not read, clear or replace composer text/attachments, and uses this
ordinary messages endpoint even while the conversation is busy, never steer.

Trusted desktop annotation commands `capture` and `validate` accept only
`{action, document_id, record_ids}`. Native-owned records bind that membership to
the current annotation document. The native host verifies the isolated runtime's
exact document and saved target references before and after full-page capture,
alongside capture's existing page/view/navigation/bounds guards. The successful
response includes `annotation_document_id` and the independent capture
`result.documentId`; these tokens are not equal or interchangeable. This trusted
user capture does not require sharing the page with the agent; automation proxy
sharing/security gates remain unchanged. A final native validation before the first
HTTP attempt rejects target removal or document replacement during upload.

Capture/upload/validation failures preserve pending records. Once an HTTP attempt
has occurred, uncertain retries keep the original session, exact payload, batch ID
and attachment reference without recapture/reupload; switching conversations does
not redirect them. A matching `queued:true` receipt alone authorizes trusted native
`acknowledge` for the frozen record IDs. An acknowledgement failure retries only that
step, not submission. Accepted records retain their pins, previews and numbers;
concurrent additions remain pending. Failed/in-flight batches survive panel remounts
in memory, bounded by the owning browser page lifetime, not application restart.

### `POST /api/sessions/:id/turn/steer`

Appends structured user input to the currently running regular agent turn.
Expand Down
Loading
Loading