[RFC] macOS desktop input and save flows for #15
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by comparing the implementation status in this RFC with the work in #27, then read s1a/agents/desktop.py, s1a/desktop/env.py, and s1a/desktop/driver.py. Run test_desktop_actions.py, test_desktop_dialogs.py, and the extended driver, environment, and CLI tests on macOS. Done means the listed input, dialog, stale-target, and dry-run behaviors pass, with saved-file verification succeeding.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What this enables
The macOS desktop agent can enter text, use keyboard shortcuts, scroll, and complete a document's Save As flow. Saved text is checked on disk before the task succeeds.
Feature: #15. The text-input part is submitted in #27. The screenshot and local Cua-S1 4B work is covered by RFC #30.
Design
s1a/agents/desktop.pyaccepts task text, target fields, allowed keys and scroll directions, and allowed dialog titles.s1a/desktop/env.pybuilds actions from the current window observation, executes a selected action, and reads the window again. Text entry supports insertion and whole-field replacement, with field readback and an optional saved-file check.s1a/desktop/driver.pyuses the existing Rust Cua Driver. Actions identify the selected process, window, and session. Editable targets use current element tokens; stale or refused input fails the action. Foreground keyboard delivery is explicit.- Save As follows explicitly named dialogs owned by the document's process. Named field values support a filename separate from the document body. Cancelling and reopening the dialog refreshes the field state.
The task supplies the text and allowed actions. The decision model chooses an offered action. Dry runs preserve the existing preview behaviour.
Implementation status
| Feature | Current status |
|---|---|
| Text insertion/replacement, field readback, saved-file verification | #27, open for review |
| Keys, shortcuts, scrolling, and the TextEdit runner | Implemented and tested locally |
| Same-process Save As dialogs and named filename input | Implemented and tested locally |
Verification
Added test_desktop_actions.py and test_desktop_dialogs.py, and extended the driver, environment, and CLI tests. They cover text replacement, readback, saved-file checks, keys, scrolling, dialog transitions, stale targets, refused actions, and dry runs.
Text input was tested on macOS 26.2 arm64 with Cua Driver 0.30.1:
| Task | Action selection | Passed | Total time | Actions per trial |
|---|---|---|---|---|
| Enter Body and save in the native test app | Local Laya 0.3.20 | 3/3 | 27.3 s | 4 |
| Replace Chinese multiline text and save | Fixed action plan | 1/1 | 4.9 s | 2 |
Each trial checks the saved file independently. Episode time excludes model loading. The Laya run uses no fixed plan or API key.
The core + dev suite passes with 515 passed, 41 skipped on #27 and 524 passed, 41 skipped for the local implementation including save dialogs. Ruff and ty pass on both; #27 also passes the lock check, package build, shell syntax, and CLI/MCP smoke checks.
How to run
Use the project checkout for #27. Requires macOS, uv, Swift command-line tools, and Cua Driver with Accessibility and Screen Recording permissions. Close any older S1A document fixture before starting. From the project directory:
S1A_PROJECT_DIR="$(pwd -P)"
uv sync --project "$S1A_PROJECT_DIR" --extra dev --extra laya
export CUA_DRIVER_BIN=/Applications/CuaDriver.app/Contents/MacOS/cua-driver
S1A="$S1A_PROJECT_DIR/.venv/bin/s1a" \
bash "$S1A_PROJECT_DIR/evals/desktop/run_local.sh" --episodes 3
The script builds the native app, runs local Laya, and checks the saved file. #27 also includes a fixed-plan command for checking execution.
- Ngôn ngữ chính
- Python
- Star
- 120
- Fork
- 21
- Merge trung bình
- 17 giờ 13 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ThinkFlowLab/system1-agents
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
ThinkFlowLab/system1-agents#129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ThinkFlowLab/system1-agents#130 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Eval] Measure cross-question interference when decide_many bundles questionsCó thể đã có người làm @Birfy đã nhận 3 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
ThinkFlowLab/system1-agents#127 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feat] Add Cloudflare Clef / Clef-flash as a System One decision backendCó thể đã có người làm @Birfy đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
ThinkFlowLab/system1-agents#126 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Eval] Measure a pre-execution tool-call gate (Jev noul on BEFORE_TOOL_CALL) on TS-Bench step-level labelsCó thể đã có người làm @Birfy đã nhận 10 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
ThinkFlowLab/system1-agents#122 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ThinkFlowLab/system1-agents
Issue tương tự
-
bug game: 0100FF500E34A000 game: 0400FF500E34A001 mac packing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
jxxghp/MoviePilot#7576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
jbaruch/software-factory#266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày