Commit Graph

1445 Commits

Author SHA1 Message Date
Bartosz Taudul
bc122d5c3d Do not call Glue() in PrintTextExt(). 2026-02-01 02:35:26 +01:00
Bartosz Taudul
b60ab86fa5 Extend link support to code sections, separators, etc. 2026-02-01 02:14:42 +01:00
Bartosz Taudul
32fae40c4e Extract link hover functionality to a separate function. 2026-02-01 02:05:08 +01:00
Bartosz Taudul
324ecdcb99 Change source code separator in LLM attachments. 2026-02-01 01:48:55 +01:00
Bartosz Taudul
c886c8fa00 Remove remains of vision in tool replies. 2026-01-31 19:21:24 +01:00
Bartosz Taudul
925732914a Draw source code preview in source file link tooltip. 2026-01-31 19:17:44 +01:00
Bartosz Taudul
d1ae380cc2 Make View::DrawSourceTooltip() public. 2026-01-31 19:17:07 +01:00
Bartosz Taudul
9d33668c9d Proper check for source file validity. 2026-01-31 18:54:43 +01:00
Bartosz Taudul
903b6b198f Retrieve source file string index and line number only once. 2026-01-31 18:42:07 +01:00
Bartosz Taudul
30ea4ed341 Print a nice tooltip for source links. 2026-01-31 18:35:37 +01:00
Bartosz Taudul
5b7a6bf447 Add instructions for providing source file links. 2026-01-31 18:03:31 +01:00
Bartosz Taudul
4fe8d16a20 Add support for source file links in markdown renderer. 2026-01-31 18:03:11 +01:00
Bartosz Taudul
7cc7e484b9 Make source search results more compact. 2026-01-30 22:55:55 +01:00
Bartosz Taudul
cfcc8af5c3 Remove indentation from tool replies. 2026-01-30 22:37:50 +01:00
Bartosz Taudul
3ce2905582 Default value does not need to be repeated. 2026-01-30 22:36:16 +01:00
Bartosz Taudul
67b75ac7fb Restore attachment indentation when viewing contents in UI. 2026-01-30 22:31:25 +01:00
Bartosz Taudul
99b70f7a6e Remove indentation from LLM attachments.
This has quite large effect on number of tokens. Example assembly attachment:

glm-4.7-flash: 7452 -> 5799 (77%)
gpt-oss-20b:   6896 -> 5245 (76%)
2026-01-30 22:27:55 +01:00
Bartosz Taudul
50eae09cda Source location may be missing a line number.
The valid check here is for the source file index being set (active).
The line number might be zero.

This fixes the "black" unknown source location in assembly listing.
2026-01-30 21:44:24 +01:00
Bartosz Taudul
b9a4bf4f7b Use the intended weighting order in ManageContext(). 2026-01-30 20:58:56 +01:00
Bartosz Taudul
d6e62b3c1f Spell out (long!) source file names in assembly attachments only once. 2026-01-30 01:38:20 +01:00
Bartosz Taudul
e017f504c6 Split source_file parameter context into context and context_back. 2026-01-30 01:07:15 +01:00
Bartosz Taudul
7ef92c3547 Add crash reason and thread information to LLM attachment, if appropriate. 2026-01-29 22:09:01 +01:00
Bartosz Taudul
73572e6d7f Display notification that crash callstack is crash callstack. 2026-01-29 21:50:47 +01:00
Bartosz Taudul
ebc2c9e28a Use ranges. 2026-01-29 21:48:17 +01:00
Bartosz Taudul
ea9dbe5643 Prefer removal of older tool responses. 2026-01-28 21:34:19 +01:00
Bartosz Taudul
237058420f Make the forget message explain what happened. 2026-01-28 21:25:23 +01:00
Bartosz Taudul
b0704ba35f Adjust minimum available context logic.
Increase the context quota from 70% to 80%, as the previous value was too
conservative with large contexts.

Add a minimum bound of 4K to make small context workable.
2026-01-28 21:15:59 +01:00
Bartosz Taudul
9b98bce193 Reword no network access response. 2026-01-28 21:15:00 +01:00
Bartosz Taudul
41dd81ef7e Tighter packing of source file contents. 2026-01-28 20:59:33 +01:00
Bartosz Taudul
55f4f5f704 Change LLM API timeout from 5 to 20 minutes. 2026-01-28 18:47:14 +01:00
Bartosz Taudul
a371325346 Bump dependencies. 2026-01-26 20:48:15 +01:00
Bartosz Taudul
d1148377ae Insert hint in a valid way. 2026-01-26 11:56:43 +01:00
Bartosz Taudul
cf001a38df Adjust max size calculation. 2026-01-25 21:05:36 +01:00
Bartosz Taudul
841af4795c System prompt update. 2026-01-25 21:01:09 +01:00
Bartosz Taudul
daef2f4c6b Remove span tag duplication in retrieved web pages. 2026-01-25 20:12:34 +01:00
Bartosz Taudul
0a58d88be2 Go back to regex paths in source search. 2026-01-25 16:29:53 +01:00
Bartosz Taudul
27ecaed76e Use regex in source search. 2026-01-25 16:12:45 +01:00
Bartosz Taudul
beb4cd4ea6 Perform query transformation only once. 2026-01-25 16:12:25 +01:00
Bartosz Taudul
d4a56c9a37 Tweak system prompt. 2026-01-25 15:47:08 +01:00
Bartosz Taudul
a4324d595d Add optional file globbing to SourceSearch. 2026-01-25 02:41:00 +01:00
Bartosz Taudul
63c6e48562 Optional string parameter macro. 2026-01-25 02:14:45 +01:00
Bartosz Taudul
1f4b2dd45f Try to show some search results, if no space for full data. 2026-01-25 02:07:25 +01:00
Bartosz Taudul
7a2aaa6e8e Refine system prompt. 2026-01-25 01:14:16 +01:00
Bartosz Taudul
b2dcd55d95 Better handling of error responses. 2026-01-25 00:35:18 +01:00
Bartosz Taudul
cdec805cc9 Underline links. 2026-01-24 14:23:15 +01:00
Bartosz Taudul
7c54c824ab Add support for markdown strikethrough. 2026-01-24 14:16:16 +01:00
Bartosz Taudul
a7ed5e1fb3 Support rendering markdown task lists. 2026-01-24 13:50:39 +01:00
Bartosz Taudul
73694c7a24 Cleanup enums. 2026-01-24 01:50:11 +01:00
Bartosz Taudul
cfb5f5595a Rewrite system prompt. 2026-01-23 23:22:59 +01:00
Bartosz Taudul
805d4bf6fd Better table sizing flags? 2026-01-17 01:55:26 +01:00