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
Split x_conversations to return brief message to agent
- x_conversations now returns only "X conversations awaiting reply"
- x_get_conversations (app-only) returns full JSON data
- UI fetches data via x_get_conversations, agent sees minimal output
- This prevents agent from summarizing conversation data
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@@ -94,12 +99,15 @@ export async function xConversations(): Promise<unknown> {
94
99
// Check if username is set
95
100
if(!username){
96
101
return{
97
-
content: [
98
-
{
99
-
type: 'text',
100
-
text: `I need your X username to find your conversations.\n\nPlease check your auth status with x_auth_status first - your username should be detected automatically after authentication.`,
101
-
},
102
-
],
102
+
success: false,
103
+
content: {
104
+
content: [
105
+
{
106
+
type: 'text',
107
+
text: `I need your X username to find your conversations.\n\nPlease check your auth status with x_auth_status first - your username should be detected automatically after authentication.`,
108
+
},
109
+
],
110
+
},
103
111
};
104
112
}
105
113
@@ -127,19 +135,12 @@ export async function xConversations(): Promise<unknown> {
127
135
});
128
136
129
137
if(mentions.length===0){
130
-
// Return empty conversation data for UI
131
-
constemptyData={
132
-
conversations: [],
133
-
username,
134
-
};
135
-
136
138
return{
137
-
content: [
138
-
{
139
-
type: 'text',
140
-
text: JSON.stringify(emptyData),
141
-
},
142
-
],
139
+
success: true,
140
+
data: {
141
+
conversations: [],
142
+
username,
143
+
},
143
144
};
144
145
}
145
146
@@ -269,33 +270,29 @@ export async function xConversations(): Promise<unknown> {
269
270
// Update last checked timestamp
270
271
updateLastChecked();
271
272
272
-
// Return JSON data for the conversation-list UI app
0 commit comments