Skip to content

fix: pass atespace on self-suspend in agent-secret demo#442

Open
Mesut Oezdil (mesutoezdil) wants to merge 1 commit into
agent-substrate:mainfrom
mesutoezdil:fix/agent-secret-suspend-missing-atespace
Open

fix: pass atespace on self-suspend in agent-secret demo#442
Mesut Oezdil (mesutoezdil) wants to merge 1 commit into
agent-substrate:mainfrom
mesutoezdil:fix/agent-secret-suspend-missing-atespace

Conversation

@mesutoezdil

Copy link
Copy Markdown
Contributor

Host parsing kept only the actor id and dropped the atespace label,
so the self-suspend call always sent an empty atespace. The API
rejects that with atespace required, so self-suspend never worked.

Now atespace is parsed and passed through to SuspendActor.

@mesutoezdil Mesut Oezdil (mesutoezdil) force-pushed the fix/agent-secret-suspend-missing-atespace branch 2 times, most recently from 4cda82e to 38417a8 Compare July 15, 2026 19:06
Comment thread demos/agent-secret/main.go Outdated
if len(parts) > 1 {
actorID = parts[0]
}
atespace, actorID, _ = resources.ParseActorDNSName(host)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actorID -> actorName.

While you are here, can you replace this throughout the whole file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actorID -> actorName.

While you are here, can you replace this throughout the whole file?

Sure! Could you have a look at my other PRs as well? I’m getting a bit tired of updating them every day :)
https://github.com/agent-substrate/substrate/pulls/mesutoezdil

Host parsing dropped the atespace label, so SuspendActor always
failed with atespace required. Now uses resources.ParseActorDNSName
to get both atespace and actor name.

Renamed actorID to actorName throughout to match repo convention.
@mesutoezdil Mesut Oezdil (mesutoezdil) force-pushed the fix/agent-secret-suspend-missing-atespace branch from 38417a8 to 084cf47 Compare July 15, 2026 20:36
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.

2 participants