Skip to content

feat!: use plain strings for global message contexts#60

Merged
rosvik merged 1 commit into
mainfrom
rosvik/plain-string-context
Jul 8, 2026
Merged

feat!: use plain strings for global message contexts#60
rosvik merged 1 commit into
mainfrom
rosvik/plain-string-context

Conversation

@rosvik

@rosvik rosvik commented Jul 7, 2026

Copy link
Copy Markdown
Member

The previous approach was flawed in that e.g. context: ["app-assistant", "web-overview"] would fail to parse, because "web-overview" was unknown to the app, and "app-assistant" was unknown on web.

It would be possible to add filtering to the current solution, but I think it makes more sense to use plain strings instead, then letting consumers handle which contexts actually are actually displayed.

The previous approach was flawed in that e.g.

  context: ["app-assistant", "web-overview"]

would fail to parse, because `"web-overview"` was unknown to the app,
and `"app-assistant"` was unknown on web.

It would be possible to add filtering to the current solution, but I
think it makes more sense to use plain strings instead, then letting
consumers handle which contexts actually are actually displayed.
@rosvik rosvik requested a review from strandlie July 7, 2026 12:16
@rosvik rosvik merged commit c8077ff into main Jul 8, 2026
2 checks passed
@rosvik rosvik deleted the rosvik/plain-string-context branch July 8, 2026 07:44
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