# NousResearch/hermes-agent · Fix getpass mocking in OAuth flow tests

## Open now

- Nothing open on GitHub.

These items address a problem where getpass reads from stdin during pytest capture in Anthropic OAuth flow tests. The work involves mocking getpass properly and refactoring the test architecture to fix related CI failures.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #5946. Verify it addresses your case.
- **Recommended:** read PR #5946 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #5687: Anthropic OAuth flow test: getpass reads stdin under pytest capture

## Prior & competing PRs

- **#5946: refactor(tests): re-architect tests + fix CI failures**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `.github/workflows/tests.yml`, `tests/agent/test_anthropic_adapter.py`, `tests/agent/test_auxiliary_config_bridge.py`, `tests/agent/test_context_references.py`, `tests/agent/test_credential_pool.py`, `tests/agent/test_credential_pool_routing.py`, `tests/agent/test_crossloop_client_cache.py`, `tests/agent/test_display.py`, `tests/agent/test_insights.py`, `tests/agent/test_model_metadata_local_ctx.py`, `tests/cli/__init__.py`, `tests/cli/test_branch_command.py`, `tests/cli/test_cli_approval_ui.py`, `tests/cli/test_cli_background_tui_refresh.py`, `tests/cli/test_cli_browser_connect.py`, `tests/cli/test_cli_context_warning.py`, `tests/cli/test_cli_extension_hooks.py`, `tests/cli/test_cli_file_drop.py`, `tests/cli/test_cli_init.py`, `tests/cli/test_cli_interrupt_subagent.py` (+90 more)
- **#5691: fix(test): mock getpass in OAuth flow test**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#5946`

## Fix status

- Merged to main in PR #5946 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-08`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
- Subsystem: `agent/secret_sources`
