Skip to content

Hoist MessagePromptComposer draft capture and rebind onto shared base - #2357

Merged
trissim merged 1 commit into
mainfrom
hoist/message-prompt-composer-draft-rebind
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
hoist/message-prompt-composer-draft-rebind

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown

Deletes duplicated attached_files/takes_files capture_composer_draft and rebind_conversation overrides across QtMessageComposer (src/toad/qt/composer.py) and MessagePrompt (src/toad/widgets/prompt.py) by hoisting them cooperatively onto their shared base MessagePromptComposer (src/toad/client/message_files.py).

  • QtMessageComposer: both overrides deleted (-14 lines).
  • MessagePrompt: trimmed to Textual-only simple_placeholder (-7 lines).
  • Verified: 70/70 focused tests (test_shared_frontend_members.py, test_message_files.py, test_android_perf_ux_arrivals.py, test_older_bus.py), tools/qt_inherit_ratchet.py 0/0/0/0/0, REL_IMPORTS=0.

QtMessageComposer and MessagePrompt both inherit MessagePromptComposer
ahead of Composer/Prompt -> RebindableComposer, yet duplicated the same
attached_files/takes_files capture and rebind logic (IMPL-12).

Move capture_composer_draft and rebind_conversation onto
MessagePromptComposer via cooperative super(), deleting both overrides
from QtMessageComposer and trimming MessagePrompt to its Textual-only
simple_placeholder state.
@trissim
trissim merged commit f2f9dd3 into main Nov 28, 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