Skip to content

Toad's shared contracts take AbstractHooksMeta from metaclass_registry, not Textual - #1793

Merged
trissim merged 1 commit into
mainfrom
claude-a/abstract-hooks-shared
Nov 16, 2026
Merged

trissim merged 1 commit into
mainfrom
claude-a/abstract-hooks-shared

Conversation

@trissim

@trissim trissim commented Nov 16, 2026

Copy link
Copy Markdown

Pairs with OpenHCSDev/metaclass-registry#13 and the Textual fork PR. Nine shared contracts imported Textual only for their metaclass; now from metaclass_registry. history_coverage is Textual-free; the rest stop one layer further in, next.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XbFMSofn8pw1EZ8PbTeYxm

…y, not Textual

TargetRows, MemberRows, NavigationRefresh, GroupedSidebar, StartsSessions,
WorkspaceViews, SessionOrigin, CoveredHistory and ReportsCoveredPages declared
their metaclass from textual.abstract_hooks, so every shared contract imported
Textual. The class now lives in metaclass_registry (metaclass-registry#13), and
Textual's widget metaclass subclasses it (textual: same change), so widgets that
inherit these contracts keep one metaclass. history_coverage now imports without
Textual; sidebar_contracts, launch_binding, session_host and session_scope stop
one layer further in (DOMNode, agent_binding, app_node), next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbFMSofn8pw1EZ8PbTeYxm
@trissim
trissim merged commit 86a8279 into main Nov 16, 2026
1 of 2 checks passed
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.

1 participant