Conversation
The ctap_hid_fido2 library already prints "- Touch the sensor on the authenticator", so our "Touch your FIDO2 key..." message was redundant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request improves the user experience when interacting with FIDO2 devices by eliminating a duplicate prompt. Previously, users would see two messages asking them to touch their FIDO2 key, which was confusing. This change ensures only one clear instruction is displayed, making the process smoother and less repetitive. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes a redundant user prompt to touch the FIDO2 key. As the underlying ctap_hid_fido2 library already provides this prompt, this change correctly de-duplicates the message and improves the command-line user experience. The change is straightforward and effective.
Greptile SummaryThis PR removes the redundant Confidence Score: 5/5
Sequence DiagramsequenceDiagram
participant User
participant fnox as fnox (get_hmac_secret)
participant lib as ctap_hid_fido2
Note over fnox: Before this PR
fnox->>User: eprintln!("Touch your FIDO2 key...") ❌ (removed)
fnox->>lib: FidoKeyHidFactory::create()
fnox->>lib: get_assertion_with_args()
lib->>User: "- Touch the sensor on the authenticator"
lib-->>fnox: hmac_secret
Note over fnox: After this PR
fnox->>lib: FidoKeyHidFactory::create()
fnox->>lib: get_assertion_with_args()
lib->>User: "- Touch the sensor on the authenticator" ✅ (single prompt)
lib-->>fnox: hmac_secret
Last reviewed commit: 9f86d42 |
### 🚀 Features - **(cloudflare)** add Cloudflare API token lease backend by [@jdx](https://github.com/jdx) in [#335](#335) - **(fido2)** bump demand to v2, mask PIN during typing by [@jdx](https://github.com/jdx) in [#334](#334) - **(init)** add -f as short alias for --force by [@jdx](https://github.com/jdx) in [#329](#329) - **(lease)** add --all flag, default to creating all leases by [@jdx](https://github.com/jdx) in [#337](#337) - **(lease)** add GitHub App installation token lease backend by [@jdx](https://github.com/jdx) in [#342](#342) ### 🐛 Bug Fixes - **(config)** fix directory locations to follow XDG spec by [@jdx](https://github.com/jdx) in [#336](#336) - **(exec)** use unix exec and exit silently on subprocess failure by [@jdx](https://github.com/jdx) in [#339](#339) - **(fido2)** remove duplicate touch prompt by [@jdx](https://github.com/jdx) in [#332](#332) - **(set)** write to lowest-priority existing config file by [@jdx](https://github.com/jdx) in [#331](#331) - **(tui)** skip providers requiring interactive auth by [@jdx](https://github.com/jdx) in [#333](#333) ### 🛡️ Security - **(ci)** retry lint step to handle transient pkl fetch failures by [@jdx](https://github.com/jdx) in [#341](#341) - **(mcp)** add MCP server for secret-gated AI agent access by [@jdx](https://github.com/jdx) in [#343](#343) - add guide for fnox sync by [@jdx](https://github.com/jdx) in [#328](#328) ### 🔍 Other Changes - share Rust cache across CI jobs by [@jdx](https://github.com/jdx) in [#340](#340)
Summary
ctap_hid_fido2library already prints "- Touch the sensor on the authenticator"Test plan
fnox getorfnox setwith a FIDO2 provider, verify only one touch prompt appears🤖 Generated with Claude Code
Note
Low Risk
Single log/UX-only change in the FIDO2 provider with no impact to credential, PIN, or cryptographic handling.
Overview
Removes the extra
eprintln!("Touch your FIDO2 key...")emitted duringget_hmac_secret()so CLI users only see the touch prompt produced byctap_hid_fido2when performing an assertion.Written by Cursor Bugbot for commit 9f86d42. This will update automatically on new commits. Configure here.