Skip to content

Sync new change from Release/v0.7.7 to main#7518

Merged
louis-jan merged 6 commits into
mainfrom
release/v0.7.7
Feb 12, 2026
Merged

Sync new change from Release/v0.7.7 to main#7518
louis-jan merged 6 commits into
mainfrom
release/v0.7.7

Conversation

@louis-jan

Copy link
Copy Markdown
Contributor

Describe Your Changes

  • Sync after release

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

Copilot AI review requested due to automatic review settings February 12, 2026 04:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Syncs changes from Release/v0.7.7 into main, affecting how thread assistants are represented in the web app and disabling prompt caching in the MLX server runtime.

Changes:

  • Thread service now preserves assistants arrays (including model-only entries) instead of filtering out non-instruction assistants.
  • Chat UI assistant-selection logic was adjusted (including default selection behavior).
  • MLX server prompt caching was commented out/disabled during generation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
web-app/src/services/threads/default.ts Alters thread transformation and assistant/model payload handling when listing/creating threads.
web-app/src/services/tests/threads.test.ts Updates expectations to match new assistant/model-only thread behavior.
web-app/src/routes/threads/$threadId.tsx Changes system message derivation to always consider thread assistant (not gated by project).
web-app/src/containers/ChatInput.tsx Updates assistant selection state initialization and dropdown selection logic.
mlx-server/Sources/MLXServer/ModelRunner.swift Disables prompt-cache usage/clearing and runs generation without cache.
Comments suppressed due to low confidence (1)

web-app/src/containers/ChatInput.tsx:1567

  • The “None” highlighting logic relies on !currentThread?.assistants?.length, but threads now appear to keep a model-only placeholder assistant (no instructions) in thread.assistants. That makes assistants.length > 0 even when there is no real assistant, so the UI can show no selection at all. Consider treating assistants without instructions as “none” here (or filtering them out at the service layer).
                          <DropdownMenuItem
                            className={!selectedAssistant && !currentThread?.assistants?.length ? 'bg-accent' : ''}
                            onClick={() => {
                              setSelectedAssistant(undefined)
                              if (currentThreadId) {
                                updateCurrentThreadAssistant(undefined as unknown as Assistant)
                              }
                            }}
                          >
                            <div className="flex items-center gap-2 w-full">
                              <span className="text-muted-foreground">—</span>
                              <span>None</span>
                              {!selectedAssistant && !currentThread?.assistants?.length && (
                                <span className="ml-auto text-xs text-muted-foreground">✓</span>

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web-app/src/containers/ChatInput.tsx
Comment thread web-app/src/containers/ChatInput.tsx
Comment thread mlx-server/Sources/MLXServer/ModelRunner.swift
Comment thread mlx-server/Sources/MLXServer/ModelRunner.swift
Comment thread web-app/src/services/threads/default.ts
Comment thread mlx-server/Sources/MLXServer/ModelRunner.swift
Comment thread web-app/src/services/threads/default.ts
Comment thread web-app/src/services/threads/default.ts
@github-actions

Copy link
Copy Markdown
Contributor

Barecheck - Code coverage report

Total: 24.57%

Your code coverage diff: 0.01% ▴

Uncovered files and lines
FileLines
web-app/src/containers/ChatInput.tsx1-7, 12, 21-22, 35-37, 39-40, 42-44, 50-61, 70-76, 81, 86-88, 104-141, 144-148, 150-151, 153-165, 168-169, 174-183, 186-189, 192-196, 198-201, 204-221, 223-225, 227-230, 232, 234-242, 244-251, 254-256, 259, 261-265, 267-282, 284-287, 290-293, 295-305, 307-308, 311-312, 315-317, 319-330, 332, 335, 337-343, 345-348, 351-353, 356-362, 364-367, 369, 371-380, 382, 385, 387-403, 407-409, 411-419, 422, 425-428, 430-434, 436-439, 441-446, 448-452, 454-455, 457-461, 464-468, 470-474, 477-481, 484-485, 487-491, 493-494, 496-504, 506, 508-510, 512-532, 534-542, 544-552, 554-559, 561-571, 573, 576, 578, 580-589, 591, 593-602, 605-609, 611-647, 649-661, 663-672, 674-700, 702-731, 734-754, 756-759, 761-771, 773-774, 776-781, 783-784, 786-792, 794-797, 799-803, 805-813, 815-816, 819-824, 826-840, 842-845, 847-858, 860-870, 872-875, 877-878, 881, 883-886, 889-890, 893-896, 898-899, 902-905, 907-926, 928-929, 931-934, 936-937, 939-945, 947-951, 953-956, 958-964, 966-968, 970, 972-988, 990-1000, 1003-1007, 1009-1014, 1016-1020, 1022-1023, 1025-1031, 1033-1034, 1036-1037, 1040-1043, 1045-1048, 1051-1062, 1064-1066, 1068-1069, 1071-1072, 1075-1078, 1080-1089, 1091-1100, 1102-1108, 1110-1113, 1115-1117, 1119-1125, 1127-1129, 1131-1136, 1138, 1140-1146, 1148-1157, 1159-1169, 1171-1173, 1175-1178, 1180-1182, 1185-1189, 1191-1193, 1195-1198, 1200-1203, 1206-1208, 1211-1214, 1216-1217, 1219-1223, 1225-1227, 1229, 1231-1233, 1236-1239, 1241-1242, 1244-1245, 1247-1252, 1255-1261, 1263-1267, 1270, 1272-1276, 1279-1286, 1288-1291, 1293-1295, 1297-1308, 1310-1316, 1318-1324, 1327-1330, 1332, 1334, 1336-1343, 1345-1354, 1357-1367, 1369-1380, 1382-1388, 1391-1396, 1398-1403, 1405, 1408-1414, 1416-1430, 1433-1436, 1438-1442, 1444, 1446-1448, 1450-1458, 1460-1463, 1465-1468, 1473-1475, 1477-1493, 1495-1502, 1505-1511, 1513-1523, 1525-1527, 1529-1533, 1535-1538, 1540-1545, 1547-1561, 1563-1567, 1569-1584, 1586-1594, 1596, 1598-1599, 1601, 1603-1604, 1606-1607, 1609-1610, 1612-1613, 1622-1633, 1636-1640, 1642-1648, 1650-1661, 1664-1669, 1671-1680, 1683-1685, 1687-1691, 1693-1695, 1698-1700, 1702-1704, 1706-1712, 1714-1721, 1723-1728, 1730-1736, 1738-1745, 1748-1761, 1764-1777, 1779-1780, 1782-1801, 1804-1811, 1813-1814, 1816-1822, 1824-1825, 1827-1830, 1832-1839, 1841-1847, 1850-1868, 1871-1876, 1879-1884, 1886, 1888
web-app/src/routes/threads/$threadId.tsx1-3, 5-9, 11-20, 25, 27-28, 32-33, 39-40, 44-54, 56-59, 62-64, 66-76, 78, 81-85, 88-89, 92, 95-106, 109, 112-116, 120-123, 125-127, 130-145, 147, 150, 152, 154, 160-171, 174-177, 179-185, 188-189, 192-193, 196-197, 199-201, 203-204, 207-209, 211, 213-220, 222, 225, 227-239, 241-244, 246-260, 262-272, 275-277, 279-290, 293-295, 298-301, 304-317, 319-322, 324-329, 331-338, 341, 344-349, 351-356, 358, 361, 363-370, 372-379, 381, 384-388, 390-395, 398, 401-405, 407, 409-410, 412-413, 415, 418-422, 424, 427-436, 439-442, 445-458, 461-467, 469-471, 473, 475-481, 484, 487-492, 494-502, 504-508, 511-524, 527-528, 530, 532, 534, 536, 538-539, 542-544, 549-555, 558-566, 571-572, 575, 577-579, 581-582, 585-586, 588-594, 597, 600-606, 610-611, 614-619, 621, 623, 626-635, 638-647, 650, 653-656, 659-669, 672-674, 677-683, 686-687, 689-691, 693-696, 698, 701-703, 705-717, 719-720, 722-724, 726, 728-737, 739, 741-748, 750-753, 755-769, 771-778, 780-793, 795, 797-801, 803-806, 809-818, 820
web-app/src/services/threads/default.ts65-66, 112, 131-132, 172-173

@louis-jan louis-jan merged commit e538d06 into main Feb 12, 2026
29 checks passed
@github-project-automation github-project-automation Bot moved this to QA in Jan Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: QA

Development

Successfully merging this pull request may close these issues.

5 participants