You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/App.stories.tsx
+58-10Lines changed: 58 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -590,7 +590,7 @@ export const ActiveWorkspaceWithChat: Story = {
590
590
metadata: {
591
591
historySequence: 2,
592
592
timestamp: STABLE_TIMESTAMP-290000,
593
-
model: "claude-sonnet-4-20250514",
593
+
model: "anthropic:claude-sonnet-4-5",
594
594
usage: {
595
595
inputTokens: 1250,
596
596
outputTokens: 450,
@@ -640,7 +640,7 @@ export const ActiveWorkspaceWithChat: Story = {
640
640
metadata: {
641
641
historySequence: 4,
642
642
timestamp: STABLE_TIMESTAMP-270000,
643
-
model: "claude-sonnet-4-20250514",
643
+
model: "anthropic:claude-sonnet-4-5",
644
644
usage: {
645
645
inputTokens: 2100,
646
646
outputTokens: 680,
@@ -663,7 +663,7 @@ export const ActiveWorkspaceWithChat: Story = {
663
663
metadata: {
664
664
historySequence: 5,
665
665
timestamp: STABLE_TIMESTAMP-260000,
666
-
model: "claude-sonnet-4-20250514",
666
+
model: "anthropic:claude-sonnet-4-5",
667
667
usage: {
668
668
inputTokens: 1800,
669
669
outputTokens: 520,
@@ -715,7 +715,7 @@ export const ActiveWorkspaceWithChat: Story = {
715
715
metadata: {
716
716
historySequence: 7,
717
717
timestamp: STABLE_TIMESTAMP-230000,
718
-
model: "claude-sonnet-4-20250514",
718
+
model: "anthropic:claude-sonnet-4-5",
719
719
usage: {
720
720
inputTokens: 2800,
721
721
outputTokens: 420,
@@ -775,7 +775,7 @@ export const ActiveWorkspaceWithChat: Story = {
775
775
metadata: {
776
776
historySequence: 9,
777
777
timestamp: STABLE_TIMESTAMP-170000,
778
-
model: "claude-sonnet-4-20250514",
778
+
model: "anthropic:claude-sonnet-4-5",
779
779
usage: {
780
780
inputTokens: 3500,
781
781
outputTokens: 520,
@@ -816,7 +816,7 @@ export const ActiveWorkspaceWithChat: Story = {
816
816
metadata: {
817
817
historySequence: 10,
818
818
timestamp: STABLE_TIMESTAMP-160000,
819
-
model: "claude-sonnet-4-20250514",
819
+
model: "anthropic:claude-sonnet-4-5",
820
820
usage: {
821
821
inputTokens: 800,
822
822
outputTokens: 150,
@@ -826,12 +826,60 @@ export const ActiveWorkspaceWithChat: Story = {
826
826
},
827
827
});
828
828
829
+
// User follow-up asking about documentation
830
+
callback({
831
+
id: "msg-11",
832
+
role: "user",
833
+
parts: [
834
+
{
835
+
type: "text",
836
+
text: "Should we add documentation for the authentication changes?",
837
+
},
838
+
],
839
+
metadata: {
840
+
historySequence: 11,
841
+
timestamp: STABLE_TIMESTAMP-150000,
842
+
},
843
+
});
844
+
829
845
// Mark as caught up
830
846
callback({type: "caught-up"});
847
+
848
+
// Now start streaming assistant response with reasoning
849
+
callback({
850
+
type: "stream-start",
851
+
workspaceId: workspaceId,
852
+
messageId: "msg-12",
853
+
model: "anthropic:claude-sonnet-4-5",
854
+
historySequence: 12,
855
+
});
856
+
857
+
// Send reasoning delta
858
+
callback({
859
+
type: "reasoning-delta",
860
+
workspaceId: workspaceId,
861
+
messageId: "msg-12",
862
+
delta:
863
+
"The user is asking about documentation. This is important because the authentication changes introduce a breaking change for API clients. They'll need to know how to include JWT tokens in their requests. I should suggest adding both inline code comments and updating the API documentation to explain the new authentication requirements, including examples of how to obtain and use tokens.",
864
+
tokens: 65,
865
+
timestamp: STABLE_TIMESTAMP-140000,
866
+
});
831
867
},100);
832
868
869
+
// Keep sending reasoning deltas to maintain streaming state
870
+
constintervalId=setInterval(()=>{
871
+
callback({
872
+
type: "reasoning-delta",
873
+
workspaceId: workspaceId,
874
+
messageId: "msg-12",
875
+
delta: ".",
876
+
tokens: 1,
877
+
timestamp: NOW,
878
+
});
879
+
},2000);
880
+
833
881
return()=>{
834
-
// Cleanup
882
+
clearInterval(intervalId);
835
883
};
836
884
}elseif(wsId===streamingWorkspaceId){
837
885
// Streaming workspace - show active work in progress
@@ -866,7 +914,7 @@ export const ActiveWorkspaceWithChat: Story = {
866
914
metadata: {
867
915
historySequence: 0,
868
916
timestamp: now-5000,// 5 seconds ago
869
-
model: "claude-sonnet-4-20250514",
917
+
model: "anthropic:claude-sonnet-4-5",
870
918
usage: {
871
919
inputTokens: 200,
872
920
outputTokens: 50,
@@ -902,7 +950,7 @@ export const ActiveWorkspaceWithChat: Story = {
902
950
type: "stream-start",
903
951
workspaceId: streamingWorkspaceId,
904
952
messageId: "stream-msg-2",
905
-
model: "claude-sonnet-4-20250514",
953
+
model: "anthropic:claude-sonnet-4-5",
906
954
historySequence: 2,
907
955
});
908
956
@@ -1227,7 +1275,7 @@ These tables should render cleanly without any disruptive copy or download actio
0 commit comments