Context creation fails from Hero OS UI #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
Creating a new context from the Hero OS Contexts page fails with an error (red banner, no error message visible).
Steps to reproduce
Expected
New context should be created, OSIS socket spawned, WebDAV directory created, context appears in list.
What works
Existing contexts (Geomind, Incubaid, Default, ThreeFold) work correctly — all scoped data (files, contacts, etc.) is accessible.
Technical context
Context creation involves:
context.registerRPC call to dynamically spawn a new context socket~/hero/var/hero_foundry/webdav/{context}/context.registervia base domain on root contextNeed to check: is the RPC call failing? Is it a frontend JS error? Is the OSIS context.register handler broken?
Environment
mik-tf referenced this issue2026-03-18 16:05:33 +00:00
mik-tf referenced this issue2026-03-18 23:33:28 +00:00
Fixed and verified on herodev
Root cause:
context.registerwas parsed as 2-part method (type=context, method=register) and routed to thecontexttype handler in the base domain, which has no customregistermethod. Thehandle_context_methodfunction indispatch.rsexisted but was never reached because the 2-part dispatch intercepted first.Fix: Added
context.register,context.delete,context.listto the built-in method check indispatch_jsonrpc()(before 2-part parsing), routing them tohandle_context_method()which handles lifecycle operations via the lifecycle channel.Verification:
Commits:
development(dispatch fix)development(Cargo.lock update)mik-tf referenced this issue2026-03-19 00:06:50 +00:00
mik-tf referenced this issue2026-03-19 00:17:18 +00:00
mik-tf referenced this issue2026-03-19 00:26:50 +00:00
mik-tf referenced this issue2026-03-19 02:54:39 +00:00