Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Pin the recovery --delay-ms constant across the Swift hint and the TS help text

Đang mở
#3,360 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
42/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown, swift, typescript
Lĩnh vực
testing-qa

Hướng nghiên cứu

Start at TextEntryTiming.recoveryDelayMilliseconds in apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntry.swift (value 80 at line 114) and at the hard-coded --delay-ms 80 in src/commands/schema/cli-help-workflows.ts, then read the golden fixtures under contracts/fixtures/ and AGENTS.md for the cross-language pattern. Done means one declared source for the value, the help text and website/docs/docs/commands.md consuming it, and a check in pnpm check:affected that fails when the Swift constant changes without the help text.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The Apple runner builds its TEXT_INPUT_COMMIT_NOT_OBSERVED hint from TextEntryTiming.recoveryDelayMilliseconds (apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntry.swift:36, value 80 at :114). The versioned help paragraph introduced in #3334 hard-codes the same number as --delay-ms 80 in src/commands/schema/cli-help-workflows.ts (website/docs/docs/commands.md mirrors it). TS cannot import a Swift constant, so the two can drift silently.

Required behavior: the number is stated once and both surfaces consume it — the cross-language golden tables under contracts/fixtures/ are the mechanism AGENTS.md already prescribes for shared cross-language rules; extend that pattern (or an equivalent single-source check under scripts/) so changing the Swift constant must fail a gate until the help text moves with it.

Completion condition: changing recoveryDelayMilliseconds in Swift without updating the help text fails pnpm check:affected (or a dedicated check), and the current value 80 appears in exactly one declared source plus the generated/pinned projection.

Found by review on #3334 (non-blocking); intentionally not fixed there to keep that PR inside the fill command family.

Ngôn ngữ chính
TypeScript
Star
4.9k
Fork
328
Merge trung bình
12 giờ 18 phút
Pull request đã merge (30 ngày)
538

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstack/agent-device

Tất cả issue của callstack/agent-device

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.