MCPcopy Index your code
hub / github.com/continuedev/continue / getChatTitleFromMessage

Function getChatTitleFromMessage

gui/src/redux/thunks/session.ts:172–184  ·  view source on GitHub ↗
(message: ChatMessage)

Source from the content-addressed store, hash-verified

170);
171
172function getChatTitleFromMessage(message: ChatMessage) {
173 const text =
174 renderChatMessage(message)
175 .split("\n")
176 .filter((l) => l.trim() !== "")
177 .slice(-1)[0] || "";
178
179 // Truncate
180 if (text.length > MAX_TITLE_LENGTH) {
181 return text.slice(0, MAX_TITLE_LENGTH - 3) + "...";
182 }
183 return text;
184}
185
186export const saveCurrentSession = createAsyncThunk<
187 void,

Callers 1

session.tsFile · 0.85

Calls 1

renderChatMessageFunction · 0.90

Tested by

no test coverage detected