Skip to content

fix(gateway): avoid zsh status variable in update wrapper#25658

Closed
subtract0 wants to merge 1 commit into
NousResearch:mainfrom
subtract0:fix/gateway-zsh-update-rc-20260514T112646Z
Closed

fix(gateway): avoid zsh status variable in update wrapper#25658
subtract0 wants to merge 1 commit into
NousResearch:mainfrom
subtract0:fix/gateway-zsh-update-rc-20260514T112646Z

Conversation

@subtract0

Copy link
Copy Markdown
Contributor

Summary

  • replace the gateway update wrapper's status=$? shell variable with rc=$?
  • add regression coverage so the generated update command remains zsh-safe

Why

status is a read-only special parameter in zsh. The gateway update wrapper command is copied/reused in macOS/zsh operator contexts, where assigning status=$? can create a false failure after the update body completes.

Test plan

  • /Users/am/.hermes/hermes-agent/venv/bin/python -m py_compile gateway/run.py tests/gateway/test_update_streaming.py
  • /Users/am/.hermes/hermes-agent/venv/bin/python -m pytest tests/gateway/test_update_streaming.py -q -o 'addopts='
  • git diff --check
  • added-line secret scan: 0 findings

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery labels May 14, 2026
teknium1 added a commit that referenced this pull request May 17, 2026
…tors

Adds release-note attribution mappings for 9 contributors from group 4:
- @EloquentBrush0x (PR #26657)
- @subtract0 (PR #25658)
- @zwolniony (PR #26961)
- @that-ambuj (PR #26582)
- @zccyman (PR #25294)
- @lidge-jun (PR #26814)
- @phoenixshen (PR #26768)
- @AhmetArif0 (PR #26635)
- (francip already mapped from prior PR #26134 attribution)

#27147 dropped from this batch — already landed on main as 4b17c24.
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #27308 — your commit was cherry-picked onto current main as part of a batch salvage of low-risk new-contributor PRs. Authorship preserved (fix(gateway): avoid zsh status variable in update wrapper). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…tors

Adds release-note attribution mappings for 9 contributors from group 4:
- @EloquentBrush0x (PR NousResearch#26657)
- @subtract0 (PR NousResearch#25658)
- @zwolniony (PR NousResearch#26961)
- @that-ambuj (PR NousResearch#26582)
- @zccyman (PR NousResearch#25294)
- @lidge-jun (PR NousResearch#26814)
- @phoenixshen (PR NousResearch#26768)
- @AhmetArif0 (PR NousResearch#26635)
- (francip already mapped from prior PR NousResearch#26134 attribution)

NousResearch#27147 dropped from this batch — already landed on main as 4b17c24.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants