Hermes setup import and stack trace issues in Teams gateway
Cluster 19173. Data as of
Nothing open on GitHub. Fix merged in #19774 on 4 May 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #19774. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #19774. That is separate from the fix event. - Still open
- Nothing open on GitHub.
The three members appear related: one bug report describes a stack trace and exit during hermes setup for gateway setup, and two Teams-related fixes concern importing prompt/print helpers from the right module and repairing interactive setup imports. The titles suggest a shared import-related cause, but the exact link between the bug report and the fixes isn't confirmed by the titles alone.
Open issues0
Open PRs0
Fixes on record
-
#19774 fix(teams): import prompt/print helpers from cli_output, not config
files:
plugins/platforms/teams/adapter.py,scripts/release.py,tests/gateway/test_teams.pyShow the diff
-
plugins/platforms/teams/adapter.py@@ -592,6 +592,8 @@ def interactive_setup() -> None: from hermes_cli.config import ( get_env_value, save_env_value, + ) + from hermes_cli.cli_output import ( prompt, prompt_yes_no, print_info, -
scripts/release.py@@ -344,6 +344,7 @@ "[redacted:email]": "g-guthrie", "[redacted:email]": "bobashopcashier", "[email protected]": "bobashopcashier", + "[email protected]": "megastary", # PR #18325 "[redacted:email]": "areu01or00", "[redacted:email]": "bryanyoung", "[redacted:email]": "christomitov", -
tests/gateway/test_teams.py@@ -313,9 +313,33 @@ def test_register_has_platform_hint(self): # --------------------------------------------------------------------------- -# Tests: Connect / Disconnect +# Tests: Interactive setup (import fix regression — #18325 / #19173) # --------------------------------------------------------------------------- +class TestTeamsInteractiveSetup: + def test_interactive_setup_persists_credentials(self, tmp_path, monkeypatch): + """Regression for #19173: interactive_setup must import prompt helpers + from hermes_cli.cli_output (not hermes_cli.config) and persist + credentials to .env without crashing. + """ + hermes_home = tmp_path / "hermes" + monkeypatch.setenv("HERMES_HOME", str(hermes_home)) + + import hermes_cli.cli_output as cli_output_mod + + answers = iter(["client-id", "client-secret", "tenant-id", "aad-1, aad-2"]) + monkeypatch.setattr(cli_output_mod, "prompt", lambda *_a, **_kw: next(answers)) + monkeypatch.setattr(cli_output_mod, "prompt_yes_no", lambda *_a, **_kw: True) + monkeypatch.setattr(cli_output_mod, "print_info", lambda *_a, **_kw: None) + monkeypatch.setattr(cli_output_mod, "print_success", lambda *_a, **_kw: None) + monkeypatch.setattr(cli_output_mod, "print_warning", lambda *_a, **_kw: None) + + _teams_mod.interactive_setup() + + env_text = (hermes_home / ".env").read_text(encoding="utf-8") + assert "TEAMS_CLIENT_ID=client-id" in env_text + assert "TEAMS_TENANT_ID=tenant-id" in env_text + class TestTeamsConnect: @pytest.mark.asyncio async def test_connect_fails_without_sdk(self, monkeypatch):
-
1 PR closed without merging
From the close comments: done elsewhere 1
-
#19188 fix(teams): repair interactive setup imports · done elsewhere →
#19774,#18325
Closed issues · 1
- Closed#19173[Bug]: hermes setup stack trace and exit on gateway setup
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.67: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Merged PRs
- #19774
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 4 May 2026