Skip to content

The last MRO walks go through OwnDeclarations; NativeTextKeys comes from formbridge - #324

Merged
trissim merged 1 commit into
mainfrom
claude-a/round3
Nov 16, 2026
Merged

trissim merged 1 commit into
mainfrom
claude-a/round3

Conversation

@trissim

@trissim trissim commented Nov 16, 2026

Copy link
Copy Markdown

Follows OpenHCSDev/metaclass-registry#18 and OpenHCSDev/formbridge#30.

  • MRO walks: css/native.py:146 (native_theme), dom.py:1142 (ThemeState descriptors) and dom.py:1171 (native_components) were the last hand-written vars(owner) walks over the MRO. DeclaresTheme inherits OwnDeclarations; the three read declared_items, declared_of and own_declarations. The reactive walk at dom.py:1018 is upstream's.
  • NativeTextKeys moves to formbridge; Input imports it from there. DOMNode.key_mode is typed type[TextEntryMode], so dom.py drops its EditingMode import. Screen.key_mode keeps returning the EditingMode engine because Toad instantiates it as a TextArea engine (toad prompt.py:511).

Checks: theme/component dump over every DOM class (1,415 lines) identical; bindings dump identical; css, input, widget, navigation_spellings and text_area binding tests 618 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn

…rom formbridge

DeclaresTheme inherits OwnDeclarations: declared_theme, theme_states and
declared_components read declared_items, declared_of and own_declarations instead of
three vars(owner) walks. NativeTextKeys leaves _editing.py for formbridge; DOMNode's
key_mode is typed by the text-entry identity, so dom.py no longer imports the TextArea
engine. Screen's default stays the EditingMode engine: Toad builds it as a TextArea
engine (prompt.py:511).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn
@trissim
trissim merged commit f5ec9e7 into main Nov 16, 2026
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