mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6672] [MERGED] fix(home): let any package widget open one item in its own tab #7281
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7281
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6672
Author: @Gunterlie
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/widget-open-post-any-package📝 Commits (5)
fda66bffix(home): let any package widget open one item in its own tabef29218docs(packages): document agent Home widgets (Capability API 1.35)9da432afix(home): ignore widget tab callbacks when the package has no Home tab7c9f2b3fix(home): clear only the widget focus request the tab handled4c46967Merge remote-tracking branch 'origin/staging' into fix/widget-open-post-any-package📊 Changes
3 files changed (+80 additions, -9 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/optional-agent-packages.md(+65 -0)📝
packages/client/src/components/chat/HomeBrowserHub.tsx(+13 -9)📄 Description
Why
Agent Home widgets (#6627) give package widgets an
onOpenPost(id)callback, but the Engine accepted it only from thenoodlepackage and passedfocusPostIdonly to the Noodle tab. Any other agent's widget could open its tab (onOpenNoodle()), but could not jump to one item in it. Agent authors had to change the Engine for a feature that looks generic.No linked issue. This is a small follow-up to #6627; an issue can be opened if a reviewer wants one.
What
HomeBrowserHub.tsx: the focused item now stores{ packageId, postId }.onOpenPostworks for any package widget and opens that widget's own tab. The tab receivesfocusPostIdonly when it is the tab of the package that set it.selectTabclears the focus with a functional update, so the focus thatonOpenPostsets in the same handler is kept.onOpenPostandonOpenNoodledo nothing when the package has no Home browser tab (local CodeRabbit finding), so a widget cannot switch Home to a tab that does not exist.onOpenPost,focusPostId,onFocusPostHandled,onOpenNoodle) do not change, so no package needs an update.Docs
docs/development/optional-agent-packages.md: new section Capability API 1.35: agent Home widgets. #6627 shipped the widget contract without builder docs. The section covers the manifest fields, the install rules, and theview="widget"props, including the now-genericonOpenPost.Manual verification
onOpenPost("x")opens its own Home tab and receivesfocusPostId: "x".onOpenPostclears the focus (going back does not jump again).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.