fix: handle UUID identities in instance_not_found_error_for#30
Merged
aannoo merged 1 commit intoaannoo:mainfrom Apr 28, 2026
Merged
fix: handle UUID identities in instance_not_found_error_for#30aannoo merged 1 commit intoaannoo:mainfrom
aannoo merged 1 commit intoaannoo:mainfrom
Conversation
Sub-agents using UUID-based agent IDs (36 chars with hyphens) were getting incorrect 'hcom start --as' recovery advice instead of the 'session may have ended' message. Add looks_like_uuid() check alongside the existing looks_like_agent_id() check (7-char hex). Fixes aannoo#29
Owner
|
thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sub-agents using UUID-based agent IDs (36 chars with hyphens) were getting incorrect
hcom start --asrecovery advice instead of the 'session may have ended' message.Problem
instance_not_found_error_for()checkslooks_like_agent_id()(7-char hex) but notlooks_like_uuid()(36-char UUID). When a sub-agent with a UUID identity loses its session, the error message incorrectly suggestshcom start --as <uuid>— which would rebind the parent's identity.Fix
Add
looks_like_uuid(name)check alongside the existinglooks_like_agent_id(name)check.Related
Fixes #29