Repository navigation
app: add a frame field to ServiceConfig - #957
Draft
Daniel Botros (danielbotros) wants to merge 1 commit into
Draft
Daniel Botros (danielbotros) wants to merge 1 commit into
Daniel Botros (danielbotros) wants to merge 1 commit into
Conversation
A composite can serve a component API while configured under a service API, so a service needs to carry a frame for the frame system. ComponentConfig already has one; mirror it on ServiceConfig so a service-configured composite's frame reaches the device instead of being dropped at the proto boundary. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
A composite model can serve a component API (e.g.
rdk:component:arm) while being configured under a service API. Such a resource needs aframeso the frame system registers it and motion works.ComponentConfigandRemoteConfigboth have aframefield, butServiceConfigdoes not — so a service-configured composite's configured frame is dropped at the proto boundary on its way to the device, and the frame system never receives it. The symptom on a machine isframe "<name>" not in frame systemon the Move card.The RDK frame-system builder already walks services and would register the frame if present; the proto is the only gap.
Change
Add
Frame frame = 12;toServiceConfig, mirroringComponentConfig. Field 12 is the next free number (7 and 8 are historical gaps, left alone).Regenerated: Go (
app/v1/robot.pb.go) and web/TS (gen/js/app/v1/...). Python / Flutter / C++ bindings are separate gen targets and not regenerated here.Downstream
Frameinconfig/proto_conversions.goServiceConfigToProto/ServiceConfigFromProto(depends on this).🤖 Generated with Claude Code