shotgun-sh 0.2.8.dev4__py3-none-any.whl → 0.2.9__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.
- shotgun/build_constants.py +2 -2
- shotgun/tui/screens/chat.py +20 -1
- {shotgun_sh-0.2.8.dev4.dist-info → shotgun_sh-0.2.9.dist-info}/METADATA +1 -1
- {shotgun_sh-0.2.8.dev4.dist-info → shotgun_sh-0.2.9.dist-info}/RECORD +7 -7
- {shotgun_sh-0.2.8.dev4.dist-info → shotgun_sh-0.2.9.dist-info}/WHEEL +0 -0
- {shotgun_sh-0.2.8.dev4.dist-info → shotgun_sh-0.2.9.dist-info}/entry_points.txt +0 -0
- {shotgun_sh-0.2.8.dev4.dist-info → shotgun_sh-0.2.9.dist-info}/licenses/LICENSE +0 -0
shotgun/build_constants.py
CHANGED
|
@@ -12,8 +12,8 @@ POSTHOG_API_KEY = ''
|
|
|
12
12
|
POSTHOG_PROJECT_ID = '191396'
|
|
13
13
|
|
|
14
14
|
# Logfire configuration embedded at build time (only for dev builds)
|
|
15
|
-
LOGFIRE_ENABLED = '
|
|
16
|
-
LOGFIRE_TOKEN = '
|
|
15
|
+
LOGFIRE_ENABLED = ''
|
|
16
|
+
LOGFIRE_TOKEN = ''
|
|
17
17
|
|
|
18
18
|
# Build metadata
|
|
19
19
|
BUILD_TIME_ENV = "production" if SENTRY_DSN else "development"
|
shotgun/tui/screens/chat.py
CHANGED
|
@@ -506,9 +506,28 @@ class ChatScreen(Screen[None]):
|
|
|
506
506
|
self.partial_message = event.message
|
|
507
507
|
history = self.query_one(ChatHistory)
|
|
508
508
|
|
|
509
|
+
# Filter event.messages to exclude ModelRequest with only ToolReturnPart
|
|
510
|
+
# These are intermediate tool results that would render as empty (UserQuestionWidget
|
|
511
|
+
# filters out ToolReturnPart in format_prompt_parts), causing user messages to disappear
|
|
512
|
+
from pydantic_ai.messages import ToolReturnPart
|
|
513
|
+
|
|
514
|
+
filtered_event_messages: list[ModelMessage] = []
|
|
515
|
+
for msg in event.messages:
|
|
516
|
+
if isinstance(msg, ModelRequest):
|
|
517
|
+
# Check if this ModelRequest has any user-visible parts
|
|
518
|
+
has_user_content = any(
|
|
519
|
+
not isinstance(part, ToolReturnPart) for part in msg.parts
|
|
520
|
+
)
|
|
521
|
+
if has_user_content:
|
|
522
|
+
filtered_event_messages.append(msg)
|
|
523
|
+
# Skip ModelRequest with only ToolReturnPart
|
|
524
|
+
else:
|
|
525
|
+
# Keep all ModelResponse and other message types
|
|
526
|
+
filtered_event_messages.append(msg)
|
|
527
|
+
|
|
509
528
|
# Only update messages if the message list changed
|
|
510
529
|
new_message_list = self.messages + cast(
|
|
511
|
-
list[ModelMessage | HintMessage],
|
|
530
|
+
list[ModelMessage | HintMessage], filtered_event_messages
|
|
512
531
|
)
|
|
513
532
|
if len(new_message_list) != len(history.items):
|
|
514
533
|
history.update_messages(new_message_list)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
shotgun/__init__.py,sha256=P40K0fnIsb7SKcQrFnXZ4aREjpWchVDhvM1HxI4cyIQ,104
|
|
2
2
|
shotgun/api_endpoints.py,sha256=TvxuJyMrZLy6KZTrR6lrdkG8OBtb3TJ48qaw3pWitO0,526
|
|
3
|
-
shotgun/build_constants.py,sha256=
|
|
3
|
+
shotgun/build_constants.py,sha256=hDFr6eO0lwN0iCqHQ1A5s0D68txR8sYrTJLGa7tSi0o,654
|
|
4
4
|
shotgun/logging_config.py,sha256=UKenihvgH8OA3W0b8ZFcItYaFJVe9MlsMYlcevyW1HY,7440
|
|
5
5
|
shotgun/main.py,sha256=RA3q1xPfqxCu43UmgI2ryZpA-IxPhJb_MJrbLqp9c_g,5140
|
|
6
6
|
shotgun/posthog_telemetry.py,sha256=TOiyBtLg21SttHGWKc4-e-PQgpbq6Uz_4OzlvlxMcZ0,6099
|
|
@@ -127,7 +127,7 @@ shotgun/tui/components/prompt_input.py,sha256=Ss-htqraHZAPaehGE4x86ij0veMjc4Ugad
|
|
|
127
127
|
shotgun/tui/components/spinner.py,sha256=ovTDeaJ6FD6chZx_Aepia6R3UkPOVJ77EKHfRmn39MY,2427
|
|
128
128
|
shotgun/tui/components/splash.py,sha256=vppy9vEIEvywuUKRXn2y11HwXSRkQZHLYoVjhDVdJeU,1267
|
|
129
129
|
shotgun/tui/components/vertical_tail.py,sha256=kROwTaRjUwVB7H35dtmNcUVPQqNYvvfq7K2tXBKEb6c,638
|
|
130
|
-
shotgun/tui/screens/chat.py,sha256=
|
|
130
|
+
shotgun/tui/screens/chat.py,sha256=D_HKVSOjT1ex3AHRtE41hTmDKiiUmmHY7BIbHvTyj-w,38747
|
|
131
131
|
shotgun/tui/screens/chat.tcss,sha256=2Yq3E23jxsySYsgZf4G1AYrYVcpX0UDW6kNNI0tDmtM,437
|
|
132
132
|
shotgun/tui/screens/directory_setup.py,sha256=lIZ1J4A6g5Q2ZBX8epW7BhR96Dmdcg22CyiM5S-I5WU,3237
|
|
133
133
|
shotgun/tui/screens/feedback.py,sha256=VxpW0PVxMp22ZvSfQkTtgixNrpEOlfWtekjqlVfYEjA,5708
|
|
@@ -148,8 +148,8 @@ shotgun/utils/env_utils.py,sha256=ulM3BRi9ZhS7uC-zorGeDQm4SHvsyFuuU9BtVPqdrHY,14
|
|
|
148
148
|
shotgun/utils/file_system_utils.py,sha256=l-0p1bEHF34OU19MahnRFdClHufThfGAjQ431teAIp0,1004
|
|
149
149
|
shotgun/utils/source_detection.py,sha256=Co6Q03R3fT771TF3RzB-70stfjNP2S4F_ArZKibwzm8,454
|
|
150
150
|
shotgun/utils/update_checker.py,sha256=IgzPHRhS1ETH7PnJR_dIx6lxgr1qHpCkMTgzUxvGjhI,7586
|
|
151
|
-
shotgun_sh-0.2.
|
|
152
|
-
shotgun_sh-0.2.
|
|
153
|
-
shotgun_sh-0.2.
|
|
154
|
-
shotgun_sh-0.2.
|
|
155
|
-
shotgun_sh-0.2.
|
|
151
|
+
shotgun_sh-0.2.9.dist-info/METADATA,sha256=Oa7hEsFj4nzgRGje9A2ScEOndeRTHh0TcrzIaSVUzdQ,4294
|
|
152
|
+
shotgun_sh-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
153
|
+
shotgun_sh-0.2.9.dist-info/entry_points.txt,sha256=asZxLU4QILneq0MWW10saVCZc4VWhZfb0wFZvERnzfA,45
|
|
154
|
+
shotgun_sh-0.2.9.dist-info/licenses/LICENSE,sha256=YebsZl590zCHrF_acCU5pmNt0pnAfD2DmAnevJPB1tY,1065
|
|
155
|
+
shotgun_sh-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|