Repository navigation
Declare caller-owned types for terminal, turn and rendering inputs - #1154
Merged
Merged
Conversation
trissim
marked this pull request as ready for review
October 23, 2026 17:04
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
170 parameters now name the types their callers pass. The eight selected modules go 224 → 54 bare parameters; all src/toad goes 1328 → 1158. Explicit Any remains 10. Parameter deletions: 0.
Base:
eee930eadd3f4c0383b8116242112a5659fc53b7. Head:ae601d27904f00ad4e30b349bb09cf63867a1ee1. These are the next eight untouched modules by count; earlier slices’ documented missing owners are not counted again as new work.markdown_links.pyacp/session_updates.pyterminal_execution.pyconversation_turn.pyagent.pyblock_navigation.pywidgets/transcript_fragments.pywidgets/transcript_lines.pyAll 287 production modules parse. All eight changed modules import under python -I and compile. AST comparison confirms unchanged bodies, defaults and inheritance; Mypy adds no diagnostics in these eight files. Debt ratchet passed on this head: https://github.com/OpenHCSDev/toad/actions/runs/39991600220. No tests were run. No guards, dependency locks or checker baselines changed. No Any, object, cast, Protocol, type ignores or invented nullable annotations were added.
The 54 remaining bare parameters are listed below. Each row names the broken declaration and the class that should own it. Proposed parent classes are named explicitly; they are not implemented by this typing PR.
markdown_links.py:44LinkContextmarkdown_links.py:62MessageHistorySource (parent of live and saved sources)markdown_links.py:175MessageMarkdownParsermarkdown_links.py:187MessageMarkdownParseracp/session_updates.py:120ResponseDeliveryacp/session_updates.py:158RenderExecutionacp/session_updates.py:158RenderExecutionacp/session_updates.py:170RejectedSessionUpdateValidationacp/session_updates.py:170SessionNotificationOwnerterminal_execution.py:204Commandterminal_execution.py:300TerminalRunner (new parent of TerminalExecution and ShellOperationalSource)terminal_execution.py:310TerminalRunner (new parent of TerminalExecution and ShellOperationalSource)terminal_execution.py:322TerminalRunner (new parent of TerminalExecution and ShellOperationalSource)terminal_execution.py:331TerminalRunner (new parent of TerminalExecution and ShellOperationalSource)terminal_execution.py:421TerminalExecutionterminal_execution.py:427TerminalExecutionconversation_turn.py:60TurnUpdate (new parent of AgentCommsUpdate and AttachmentPresentation)conversation_turn.py:63TurnOwnerconversation_turn.py:115TurnOwnerconversation_turn.py:169TurnUpdate (new parent of AgentCommsUpdate and AttachmentPresentation)conversation_turn.py:172TurnOwnerconversation_turn.py:218AgentConnectionconversation_turn.py:266CoreEventMessageagent.py:38ConversationSessionBindingagent.py:45CoreEventMessageagent.py:51AgentBaseagent.py:66CompactRequestagent.py:69QueuedAgent (capability parent composed into ACP Agent)agent.py:69QueuedAgent (capability parent composed into ACP Agent)agent.py:72CoreEventMessageagent.py:81QueuedAgent (capability parent composed into ACP Agent)agent.py:101CompactRequestagent.py:107CoreEventMessageblock_navigation.py:42ConversationEntryblock_navigation.py:88BlockCursorblock_navigation.py:247AgentResponseblock_navigation.py:358Contentswidgets/transcript_fragments.py:246ReferencedTranscript (reference-bearing TranscriptEvent parent)widgets/transcript_fragments.py:308TextTranscriptwidgets/transcript_fragments.py:308TranscriptFragmentwidgets/transcript_fragments.py:434TranscriptFragmentwidgets/transcript_fragments.py:469TranscriptFragment (preserve its Shown member type)widgets/transcript_fragments.py:472TranscriptFragment (preserve its Shown member type)widgets/transcript_fragments.py:475TranscriptFragment (preserve its Shown member type)widgets/transcript_fragments.py:496ContextTranscriptFragmentwidgets/transcript_fragments.py:536TranscriptFragmentwidgets/transcript_lines.py:259LineBlockwidgets/transcript_lines.py:308LineBlockwidgets/transcript_lines.py:700LineViewport (capability parent of those three views)widgets/transcript_lines.py:703LineViewport (capability parent of those three views)widgets/transcript_lines.py:709LineHistorywidgets/transcript_lines.py:709RowAcquisitionwidgets/transcript_lines.py:791LineViewport (capability parent of those three views)widgets/transcript_lines.py:791RenderExecutionAssumed:
Independent review on the head is required. The author does not merge this PR.