Repository navigation
Application actions import without Textual, so Qt lists the same menu - #1812
Merged
Merged
Conversation
The action family root (DeclaredAction: keys, title, summary, availability, menu offering, apply) and ApplicationAction with its menu move to toad.client.application_actions, built on metaclass_registry's key declarations. New thread, Channels, Direct messages and Quit live there too: their bodies only need the shared client and host. Channels runs its reveal as a ChannelsReveal operation instead of a Textual worker. The members that push Textual screens or use Textual widgets stay in toad.application_actions, still in the same family, so the Textual menu, palette and keys list the whole family and Qt lists whatever its process imported. Turning a declaration's keys into Textual bindings moves from the action classes to DeclaredWidgetActions (key_bindings, mode_bindings, exclusive_bindings, configured_bindings, active_declared_bindings). Widget Action adds its footer group and engine key through refine_binding. ToadApp's bindings are the same set before and after. System, YieldingKey and ReplacesFrameworkAction move with the family. Every importer is repointed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn
|
debt-src at b58269e blocks on 11 lines: Warn-only, never blocks (8) |
This was referenced Nov 16, 2026
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.
The ApplicationAction family now imports without Textual, so the Qt client's ☰ menu can list the same actions instead of its own two hard-coded items.
Depends on OpenHCSDev/metaclass-registry#14 (key declarations moved out of Textual) and OpenHCSDev/textual#314 (Textual imports them back). Both are merged.
Shape
toad.client.application_actions(imports with Textual blocked):DeclaredAction, the root of every action (keys declared perInputMode, title, summary, offered, label, available, parse, apply)ApplicationActionand itsmenu(app)System,YieldingKey,ReplacesFrameworkActiontoad.application_actions): OpenBus, Settings, Team and Keymap push Textual screens; TransferMenu uses Textual's transfer widget; OpenUrl and SetFooter/ToggleFooter are the terminal link and the footer; HelpQuit is the ctrl+c double-press; the Vim workspace actions use Textual's workspace screen. ApplicationCommands is the Textual palette.app.run_worker(app.session_navigation.reveal). It is nowapp.run_operation(ChannelsReveal, ...), through the shared host.DeclaredWidgetActions(key_bindings,mode_bindings,exclusive_bindings,configured_bindings,active_declared_bindings). There is still one family and no per-member Textual subclass. WidgetActionadds its footer group and engine key throughrefine_binding.Qt menu
ApplicationAction.menu(app)gives(command, label)pairs; run one withawait command.apply(app).Checks
textual_free.py toad.client.application_actionsprints OK.ruff --select Fon every touched file: clean. It also fixed pre-existing unused or duplicate imports in question.py, side_bar.py and test_main_menu_transfer.py.ToadApp.__abstractmethods__is[].action_*dispatcher: the same set before and after, compared with the module rename normalised.What changes for a user
toad.client.application_actions.instead oftoad.application_actions.. A saved remap of ctrl+s, ctrl+shift+d or ctrl+q would stop applying; on this machine'stoad.jsononly KeymapAction (not moved) is remapped.🤖 Generated with Claude Code
https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn