feat: use enlarged single PS logo and add line-numbered AI suggestions with highlight/accept/deny/copy-to-note
This commit is contained in:
@@ -318,6 +318,16 @@ export class AIStore {
|
||||
});
|
||||
}
|
||||
|
||||
/** Remove a suggestion from a session (used when denying or dismissing). */
|
||||
async deleteSuggestion(sessionId: string, suggestionId: string): Promise<AISession> {
|
||||
return this.withTransaction(async () => {
|
||||
const session = this.require(sessionId);
|
||||
session.suggestions = session.suggestions.filter((s) => s.id !== suggestionId);
|
||||
session.updatedAt = nowIso();
|
||||
return this.clone(session);
|
||||
});
|
||||
}
|
||||
|
||||
/** Add a note to a session and persist it. */
|
||||
async addNote(sessionId: string, note: Omit<AINote, "id" | "createdAt" | "updatedAt">): Promise<AISession> {
|
||||
return this.withTransaction(async () => {
|
||||
|
||||
Reference in New Issue
Block a user