Skip to content

EarFun Studio v1.5.1: BLE reliability, CI hardening, professional repo presentation - #1

Merged
lnb2x merged 12 commits into
codex/ubuntu-appfrom
codex/release-1.5.1
Nov 21, 2026
Merged

lnb2x merged 12 commits into
codex/ubuntu-appfrom
codex/release-1.5.1

Conversation

@lnb2x

@lnb2x lnb2x commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Tóm tắt (Summary)

Phiên bản bảo trì v1.5.1 tập trung vào:

  • Khắc phục vòng đời BLE: đặt lại trạng thái về Disconnected khi run_plan nối lại timeout/thất bại, khôi phục polling sau quy trình khởi động lại (ensure_polling), bỏ op_lock khỏi stop_find, bảo vệ đếm busy khi panic (BusyGuard), thêm close_lock tuần tự hóa teardown phiên cũ trước khi nối lại, chống race find/stop_find (find_seq), và Drop guard cho pending/phone_stream.
  • Sửa lỗi UI/UX: giữ phím tắt Alt+1..6, Alt+T, F5 khi focus điều khiển phi nhập liệu (TextEdit-only suppression), thay nhãn CJK thiếu glyph bằng Tiếng Trung/Tiếng Nhật, chống đè nhãn trang Cảm ứng ở 860×620, giới hạn tốc độ vẽ lại spinner (50ms), backoff tự nối lại (8 → 16 → 32 → 60 giây), --smoke-test 12 kiểm tra Sáng/Tối, cờ --version, kiểm thử glyph ttf-parser trên toàn bộ src/ui/.
  • An toàn lưu trữ & bảo mật: bảo toàn cấu hình quá cỡ/không đọc được/symlink sang .corrupt.bak/.corrupt-<timestamp>.bak, khóa ghi (save_blocked) khi sao lưu thất bại, fsync thư mục cha trên Unix, retry backoff 10–320 ms trên Windows, bỏ audio::volume() đồng bộ dư thừa, ghim liên kết HTTPS tới github.com, chặn ký tự zero-width/phân tách dòng trong tên preset.
  • Giấy phép, đóng gói & CI/CD: thêm LICENSE (MIT), đóng gói kèm LICENSE và OFL trong Windows .zip và Ubuntu .deb/.tar.gz, ghim SHA toàn bộ GitHub Actions, thêm job preflight, mục tiêu ubuntu-22.04, kiểm định gói Ubuntu/Windows và Dependabot.
  • Thiết kế lại GitHub repository: README.md, README.en.md, ảnh chụp chế độ xem trước ngoại tuyến với dữ liệu minh họa (examples/preview.rs), docs/README.md, docs/installation.md, docs/development.md, CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, Issue/PR templates, docs/releases/v1.5.1.md.

Kiểm thử (Testing)

  • cargo fmt --all -- --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (48 passed, 0 failed)
  • EARFUN_HEADLESS=1 cargo run --locked -- --smoke-test (12 dòng UI OK)
  • cargo run --locked -- --version (earfun-studio 1.5.1)
  • Kiểm tra liên kết Markdown nội bộ (18 tệp)
  • Lưu ý: Chưa thực hiện kiểm thử trên tai nghe vật lý thực tế cho v1.5.1; chưa đo độ phủ % mã nguồn.

Danh sách kiểm tra an toàn phần cứng (AGENTS.md)

  • Không đưa getter 113 vào protocol::QUERIES
  • Không tự động ghi EQ xuống tai nghe
  • close_session() trên Linux không gọi peripheral.disconnect()
  • Thao tác khởi động lại, Tìm tai nghe và Khôi phục cài đặt gốc đi qua ask_confirm; stop_find không giữ op_lock
  • Không dùng .lock().unwrap() hay giữ std::sync::MutexGuard qua .await trong src/backend/
  • Nhật ký xuất/sao chép qua redact_sensitive_identifiers; ghi tệp người dùng dùng settings::write_atomic
  • Không thêm glyph thiếu trong phông BeVietnamPro

Copilot AI balanced review requested due to automatic review settings November 21, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@lnb2x
lnb2x merged commit 7aa4439 into codex/ubuntu-app Nov 21, 2026
8 checks passed
@lnb2x
lnb2x deleted the codex/release-1.5.1 branch November 21, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants