| 5428 | agent_history_render_text(w, text, text_len, user_turns); |
| 5429 | free(text); |
| 5430 | return true; |
| 5431 | } |
| 5432 | |
| 5433 | typedef struct { |
| 5434 | ds4_kvstore_entry entry; |
| 5435 | char *title; |
| 5436 | } agent_session_list_item; |
| 5437 | |
| 5438 | static int agent_session_list_cmp_recent(const void *a, const void *b) { |
| 5439 | const agent_session_list_item *sa = a, *sb = b; |
| 5440 | uint64_t ta = sa->entry.last_used ? sa->entry.last_used : sa->entry.created_at; |
| 5441 | uint64_t tb = sb->entry.last_used ? sb->entry.last_used : sb->entry.created_at; |
no outgoing calls
no test coverage detected