Skip to content

fix(cli): handle update from non-main branches and ff-only failures#3216

Closed
erosika wants to merge 3 commits intoNousResearch:mainfrom
erosika:eri/fix-update-ff-only
Closed

fix(cli): handle update from non-main branches and ff-only failures#3216
erosika wants to merge 3 commits intoNousResearch:mainfrom
erosika:eri/fix-update-ff-only

Conversation

@erosika
Copy link
Copy Markdown
Contributor

@erosika erosika commented Mar 26, 2026

Summary

  • Track head_branch separately from the update target branch
  • When the user is on a different branch, update the local main ref via git fetch origin main:main rather than trying to merge into the current branch
  • When on the target branch, fall back to --rebase if --ff-only fails

Closes #3213

erosika added 3 commits March 26, 2026 11:06
…ousResearch#3213)

Track head_branch separately from the update target. When the user is
on a different branch, update the local main ref via fetch rather than
trying to merge into the current branch. When on the target branch,
fall back to --rebase if --ff-only fails.
zebster-cmd added a commit to zebster-cmd/hermes-agent that referenced this pull request Apr 7, 2026
…ousResearch#3216)

Cherry-picked from erosika's PR NousResearch#3216 with conflict resolution.
- Stay on current branch instead of switching to main during update
- Use pull --rebase as fallback instead of reset --hard
- For cross-branch updates, use fetch origin main:main without checkout
- Defer stashing until after confirming updates exist
- Preserves upstream gateway_mode support and update_succeeded guard
zebster-cmd added a commit to zebster-cmd/hermes-agent that referenced this pull request Apr 7, 2026
…changes for plugin architecture

- Update test_update_autostash.py: tests now expect pull --rebase fallback
  (not reset --hard), and fetch origin main:main for cross-branch updates
  (not checkout main)
- Remove broken honcho test classes (TestHonchoActivation,
  TestHonchoPrefetchScheduling) from test_run_agent.py -- these reference
  old monolithic APIs (HonchoClientConfig, _honcho_prefetch, etc.) that
  moved to the plugin architecture
- Remove broken TestSystemPromptStability honcho methods that reference
  _inject_honcho_turn_context (now in plugin)
- Keep passing TestExtractAgentNameFromSoul tests
- Update test_client.py to expect host-block baseUrl override (PR NousResearch#2645)
@teknium1
Copy link
Copy Markdown
Contributor

Thanks for this fix, @erosika! The issues it addresses are already resolved on main.

This is an automated hermes-sweeper review.

The approach differs slightly (reset --hard vs. --rebase for the ff-only fallback), but covers the same failure scenarios described in #3213. Closing as implemented on main.

@teknium1 teknium1 closed this Apr 27, 2026
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.

fix(cli): update fails with ff-only when on a feature branch

2 participants