Skip to content

Commit de11228

Browse files
chore: remove unused code
1 parent 6eb0b26 commit de11228

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/app/page.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ export default function CopilotKitPage() {
140140
},
141141
});
142142

143-
// Modern JS does respect insertion order of JS objects, so we can show the keys in a sensible order in the JSON preview
144143
const getStatePreviewJSON = (s: AgentState | undefined): Record<string, unknown> => {
145144
const snapshot = (s ?? initialState) as AgentState;
146145
const { globalTitle, globalDescription, items } = snapshot;
@@ -151,18 +150,7 @@ export default function CopilotKitPage() {
151150
};
152151
};
153152

154-
/* useCoAgentStateRender<AgentState>({
155-
name: "sample_agent",
156-
render: ({ state }) => {
157-
return (
158-
<pre className="whitespace-pre-wrap text-xs text-violet-600 font-mono w-full overflow-hidden">
159-
{JSON.stringify(getStatePreviewJSON(viewState), null, 2)}
160-
</pre>
161-
);
162-
},
163-
}); */
164153

165-
// Removed chat hook render; we'll display plan tracker inline in the sidebar header below
166154

167155
// Strengthen grounding: always prefer shared state over chat history
168156
useCopilotAdditionalInstructions({

0 commit comments

Comments
 (0)