shotgun-sh 0.1.12.dev1__py3-none-any.whl → 0.1.12.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of shotgun-sh might be problematic. Click here for more details.

@@ -1,4 +1,5 @@
1
1
  from textual.containers import VerticalScroll
2
+ from textual.geometry import Size
2
3
  from textual.reactive import reactive
3
4
 
4
5
 
@@ -11,3 +12,8 @@ class VerticalTail(VerticalScroll):
11
12
  """Handle auto_scroll property changes."""
12
13
  if value:
13
14
  self.scroll_end(animate=False)
15
+
16
+ def watch_virtual_size(self, value: Size) -> None:
17
+ """Handle virtual_size property changes."""
18
+
19
+ self.call_later(self.scroll_end, animate=False)
@@ -101,7 +101,6 @@ class ChatHistory(Widget):
101
101
 
102
102
  # Track how many messages were rendered during initial compose
103
103
  self._rendered_count = len(filtered)
104
- self.call_later(self.autoscroll)
105
104
 
106
105
  def filtered_items(self) -> Generator[ModelMessage | HintMessage, None, None]:
107
106
  for idx, next_item in enumerate(self.items):
@@ -167,18 +166,6 @@ class ChatHistory(Widget):
167
166
  self.vertical_tail.mount(widget, before=self.vertical_tail.children[-1])
168
167
 
169
168
  self._rendered_count = len(filtered)
170
- self.call_after_refresh(self.autoscroll)
171
-
172
- def autoscroll(self) -> None:
173
- """Smoothly scroll to the bottom after new content is added."""
174
- if self.vertical_tail:
175
- # Scroll to absolute bottom - more reliable during recomposition
176
- self.vertical_tail.scroll_end(animate=False, force=True)
177
-
178
- def watch_partial_response(self, partial_response: ModelMessage | None) -> None:
179
- """Trigger autoscroll when partial response updates during streaming."""
180
- if partial_response is not None:
181
- self.call_after_refresh(self.autoscroll)
182
169
 
183
170
 
184
171
  class UserQuestionWidget(Widget):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shotgun-sh
3
- Version: 0.1.12.dev1
3
+ Version: 0.1.12.dev2
4
4
  Summary: AI-powered research, planning, and task management CLI tool
5
5
  Project-URL: Homepage, https://shotgun.sh/
6
6
  Project-URL: Repository, https://github.com/shotgun-sh/shotgun
@@ -109,7 +109,7 @@ shotgun/tui/commands/__init__.py,sha256=8D5lvtpqMW5-fF7Bg3oJtUzU75cKOv6aUaHYYszy
109
109
  shotgun/tui/components/prompt_input.py,sha256=Ss-htqraHZAPaehGE4x86ij0veMjc4UgadMXpbdXr40,2229
110
110
  shotgun/tui/components/spinner.py,sha256=ovTDeaJ6FD6chZx_Aepia6R3UkPOVJ77EKHfRmn39MY,2427
111
111
  shotgun/tui/components/splash.py,sha256=vppy9vEIEvywuUKRXn2y11HwXSRkQZHLYoVjhDVdJeU,1267
112
- shotgun/tui/components/vertical_tail.py,sha256=GavHXNMq1X8hc0juDLKDWTW9seRLk3VlhBBMl60uPG0,439
112
+ shotgun/tui/components/vertical_tail.py,sha256=kROwTaRjUwVB7H35dtmNcUVPQqNYvvfq7K2tXBKEb6c,638
113
113
  shotgun/tui/screens/chat.py,sha256=0fIERVokK06L-kIko_q57gx85j9M95hNpx7OPVZUGjc,27067
114
114
  shotgun/tui/screens/chat.tcss,sha256=2Yq3E23jxsySYsgZf4G1AYrYVcpX0UDW6kNNI0tDmtM,437
115
115
  shotgun/tui/screens/directory_setup.py,sha256=lIZ1J4A6g5Q2ZBX8epW7BhR96Dmdcg22CyiM5S-I5WU,3237
@@ -118,7 +118,7 @@ shotgun/tui/screens/splash.py,sha256=E2MsJihi3c9NY1L28o_MstDxGwrCnnV7zdq00MrGAsw
118
118
  shotgun/tui/screens/chat_screen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
119
119
  shotgun/tui/screens/chat_screen/command_providers.py,sha256=55JIH9T8QnyHRsMoXhOi87FiVM-d6o7OKpCe82uDP9I,7840
120
120
  shotgun/tui/screens/chat_screen/hint_message.py,sha256=WOpbk8q7qt7eOHTyyHvh_IQIaublVDeJGaLpsxEk9FA,933
121
- shotgun/tui/screens/chat_screen/history.py,sha256=qITuZH1dqeVlbtExh6EkLqcwQfjFt6Kn4VYqRHwS3iM,10356
121
+ shotgun/tui/screens/chat_screen/history.py,sha256=BncDlwXks5wKosPlU4_TioYVMWeep8gDxtpAQsgiB9k,9717
122
122
  shotgun/tui/utils/__init__.py,sha256=cFjDfoXTRBq29wgP7TGRWUu1eFfiIG-LLOzjIGfadgI,150
123
123
  shotgun/tui/utils/mode_progress.py,sha256=lseRRo7kMWLkBzI3cU5vqJmS2ZcCjyRYf9Zwtvc-v58,10931
124
124
  shotgun/utils/__init__.py,sha256=WinIEp9oL2iMrWaDkXz2QX4nYVPAm8C9aBSKTeEwLtE,198
@@ -126,8 +126,8 @@ shotgun/utils/env_utils.py,sha256=8QK5aw_f_V2AVTleQQlcL0RnD4sPJWXlDG46fsHu0d8,10
126
126
  shotgun/utils/file_system_utils.py,sha256=l-0p1bEHF34OU19MahnRFdClHufThfGAjQ431teAIp0,1004
127
127
  shotgun/utils/source_detection.py,sha256=Co6Q03R3fT771TF3RzB-70stfjNP2S4F_ArZKibwzm8,454
128
128
  shotgun/utils/update_checker.py,sha256=IgzPHRhS1ETH7PnJR_dIx6lxgr1qHpCkMTgzUxvGjhI,7586
129
- shotgun_sh-0.1.12.dev1.dist-info/METADATA,sha256=HArvIlxxxiQ9eSFZIhSyW_87DTijn5s4qn1RFMuONUc,11197
130
- shotgun_sh-0.1.12.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
131
- shotgun_sh-0.1.12.dev1.dist-info/entry_points.txt,sha256=asZxLU4QILneq0MWW10saVCZc4VWhZfb0wFZvERnzfA,45
132
- shotgun_sh-0.1.12.dev1.dist-info/licenses/LICENSE,sha256=YebsZl590zCHrF_acCU5pmNt0pnAfD2DmAnevJPB1tY,1065
133
- shotgun_sh-0.1.12.dev1.dist-info/RECORD,,
129
+ shotgun_sh-0.1.12.dev2.dist-info/METADATA,sha256=aFhkNs5ZqJOHIFX-AoG2XKuJlBGKuhYFBgmOUTStq64,11197
130
+ shotgun_sh-0.1.12.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
131
+ shotgun_sh-0.1.12.dev2.dist-info/entry_points.txt,sha256=asZxLU4QILneq0MWW10saVCZc4VWhZfb0wFZvERnzfA,45
132
+ shotgun_sh-0.1.12.dev2.dist-info/licenses/LICENSE,sha256=YebsZl590zCHrF_acCU5pmNt0pnAfD2DmAnevJPB1tY,1065
133
+ shotgun_sh-0.1.12.dev2.dist-info/RECORD,,