feat(desktop): default Kimi to fast mode and show release notes on update

- kimi adapter: parameterize mode switching (fast/thinking) and default to
  K2.6 快速; fix snapshot filtering so fast-mode "搜索网页" chips no longer
  wipe the answer body or get misclassified as reasoning/sidebar
- desktop shell: display release notes in the client update modal
- admin-web: fix publish-records table layout with fixed columns and ellipsis
- bump desktop-client to 0.1.10

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-10 01:35:08 +08:00
parent 347cea1296
commit 5463319b40
4 changed files with 143 additions and 38 deletions
@@ -39,6 +39,7 @@ const updateModalOpen = ref(false)
const updateModalVersion = ref('')
const updateModalForce = ref(false)
const updateModalStarted = ref(false)
const updateModalNotes = ref('')
const bugReportOpen = ref(false)
const bugReportSubmitting = ref(false)
type BugReportSeverity = 'low' | 'medium' | 'high' | 'critical'
@@ -227,9 +228,14 @@ async function startClientReleaseUpdate() {
}
}
function notifyClientUpdate(latestVersion: string, forceUpdate: boolean) {
function notifyClientUpdate(
latestVersion: string,
forceUpdate: boolean,
releaseNotes?: string | null,
) {
updateModalVersion.value = latestVersion
updateModalForce.value = forceUpdate
updateModalNotes.value = releaseNotes?.trim() ?? ''
updateModalStarted.value = false
updateModalOpen.value = true
}
@@ -262,7 +268,7 @@ async function checkClientReleaseOnce() {
if (!result?.update_available) {
return
}
notifyClientUpdate(result.latest_version, result.force_update)
notifyClientUpdate(result.latest_version, result.force_update, result.release_notes)
}
onMounted(() => {
@@ -402,6 +408,11 @@ watch(
</button>
</div>
<div v-if="updateModalNotes && !isUpdateFailed" class="client-update-notes">
<strong>版本介绍</strong>
<p>{{ updateModalNotes }}</p>
</div>
<div v-if="updateModalStarted && !isUpdateFailed" class="client-update-progress">
<div class="client-update-progress__meta">
<strong>{{ updateProgressLabel }}</strong>
@@ -996,6 +1007,33 @@ h1 {
color: #0958d9;
}
.client-update-notes {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 180px;
overflow-y: auto;
padding: 14px 16px;
border: 1px solid #eef2f7;
border-radius: 10px;
background: #f8fafc;
}
.client-update-notes strong {
color: #334155;
font-size: 13px;
font-weight: 800;
}
.client-update-notes p {
margin: 0;
color: #475569;
font-size: 14px;
line-height: 1.7;
white-space: pre-wrap;
word-break: break-word;
}
.client-update-progress {
display: flex;
flex-direction: column;