MCPcopy Create free account
hub / github.com/github/copilot-sdk / normalizeStoredUserMessages

Function normalizeStoredUserMessages

test/harness/replayingCapiProxy.ts:1069–1080  ·  view source on GitHub ↗
(conversations: NormalizedConversation[])

Source from the content-addressed store, hash-verified

1067 'Use read_agent with agent_id "$1" to retrieve the full results.';
1068
1069function normalizeStoredUserMessages(conversations: NormalizedConversation[]) {
1070 for (const conversation of conversations) {
1071 for (const message of conversation.messages) {
1072 if (message.role === "user" && typeof message.content === "string") {
1073 message.content = message.content.replace(
1074 taskCompletionNotificationPattern,
1075 taskCompletionNotificationReplacement,
1076 );
1077 }
1078 }
1079 }
1080}
1081
1082function normalizeSkillContextFrontmatter(content: string): string {
1083 // Runtime versions may include or omit SKILL.md metadata in the prompt context.

Callers 1

loadStoredDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…