Skip to content

Add unattended/login reliability: OTP, file dialogs, session guard#217

Merged
JE-Chen merged 1 commit into
devfrom
feat/unattended-reliability
Jun 18, 2026
Merged

Add unattended/login reliability: OTP, file dialogs, session guard#217
JE-Chen merged 1 commit into
devfrom
feat/unattended-reliability

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary

Three practitioner-pain fixes from the multi-agent research, completing
the actionable backlog for unattended / login automation. All full-stack
and headless.

  • OTP / TOTP for 2FAgenerate_totp / verify_totp,
    AC_otp_to_var, ac_generate_otp: mint the current code from a base32
    secret (reuses the remote-desktop TOTP engine). Also hardens
    verify_code against near-epoch negative counters.
  • Native file dialogshandle_file_dialog, AC_handle_file_dialog,
    ac_handle_file_dialog: wait for the OS Open/Save/folder dialog, type
    the path, confirm — via an injectable FileDialogDriver.
  • Locked-session guardensure_interactive_session /
    is_session_locked, AC_assert_session_active: refuse to drive input
    into a locked / disconnected session (Windows input-desktop probe;
    injectable).

Facade re-exports, Script Builder entries, headless tests (no 2FA / real
dialog / locked session needed), and a v9 reference page (EN + Traditional
Chinese) + README sections. ruff / radon / bandit clean; Qt-free; no
orphan Script Builder commands.

Three practitioner-pain fixes from the agent research, all full-stack and
headless:

- OTP/TOTP: generate_totp / verify_totp and AC_otp_to_var mint a 2FA code
  from a base32 secret (reusing the remote-desktop TOTP engine); also
  hardens verify_code against near-epoch negative counters.
- File dialogs: handle_file_dialog / AC_handle_file_dialog wait for a
  native Open/Save/folder dialog, type the path and confirm, via an
  injectable FileDialogDriver.
- Session guard: ensure_interactive_session / is_session_locked /
  AC_assert_session_active refuse to drive input into a locked or
  disconnected session (Windows input-desktop probe; injectable).

Wired through facade, executor commands, ac_generate_otp /
ac_handle_file_dialog / ac_assert_session_active MCP tools, Script Builder
entries, headless tests, and a v9 reference page (EN + Traditional
Chinese) + README sections.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 36 complexity · 0 duplication

Metric Results
Complexity 36
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit ce969fa into dev Jun 18, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/unattended-reliability branch June 18, 2026 22:25
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant