Skip to content

Kiro Account Manager v1.7.5

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Jun 09:18

🌟 更新内容 | What's New

v1.7.5 (2026-6-7) — 思考模式支持 + Enterprise profileArn 完整修复 + Agent 模式与 Steering + 工具调用泄漏修复

🧠 思考模式支持(Claude 4.6+)

  • 新增: 完整支持 Claude 4.6+ 模型的思考/扩展思考模式 — 自动从 ListAvailableModels 响应的 additionalModelRequestFieldsSchema 检测模型思考能力
  • 新增: OpenAI 格式 thinking: {type, budget_tokens}reasoning_effort 映射为 Kiro 的 additionalModelRequestFields(支持 output_configreasoning 两种 schema path)
  • 新增: Claude /v1/messages 格式 thinking: {type:"enabled", budget_tokens} 映射为对应 effort 级别(low/medium/high/xhigh
  • 新增: 流式推理内容输出 — OpenAI 格式使用 reasoning_content 字段,Claude 格式使用 thinking content block
  • 新增: THINKING_SIGNATURE_INVALID 错误自动重试 — 自动剥离历史中的 reasoningContent 后重试(模型更新导致签名失效)

🔐 Enterprise 账号 profileArn 完整修复

  • 修复: Enterprise (IdC) 账号现在正确通过 POST codewhisperer.{region}.amazonaws.com/ListAvailableProfiles 获取真实 profileArn
  • 修复: Enterprise 账号强制使用 CodeWhisperer 端点(AmazonQ 端点对 Enterprise IdC 返回 400/403)
  • 新增: profileArn 自愈机制 — 所有账号类型(BuilderId/Github/Google/Enterprise)在首次请求时尝试自动获取;获取的 ARN 通过 IPC 回调持久化到磁盘,后续不再重复获取
  • 新增: Enterprise 备用 ARN — 自动获取失败时使用区域化 arn:aws:codewhisperer:{region}:610548660232:profile/VNECVYCYYAWN 兜底
  • 新增: setProfileArnPersistCallback 模块级回调 — 自愈的 profileArn 回写到账号池 + renderer store + 内存快照
  • 新增: onProxyAccountUpdate IPC 事件 — renderer 监听并将 profileArn 持久化到顶层和 credentials.profileArn
  • 修复: 同步字段错位 — ProxyPanel 和 lazy-sync 现在兼容读取 acc.profileArn || acc.credentials?.profileArn
  • 修复: refresh-account-tokenverify-account-credentials 现对所有账号类型自动获取 profileArn(不再限于 Enterprise)
  • 修复: refreshAccountToken store action 现保存返回的 profileArn 到顶层和 credentials 双位置

🔧 工具调用 XML 泄漏修复

  • 修复: Kiro 后端偶尔在文本内容(assistantResponseEvent / codeEvent)中夹带 <tool_use id="...">...</tool_use> XML(与结构化 toolUseEvent 并发)— 现在从文本输出中过滤这些 XML 标签,防止客户端显示原始标签

🎛️ Agent 模式与 Steering 支持

  • 新增: 反代面板新增 Agent Mode 下拉 — 可切换 Vibe(对话优先,边聊边做)和 Spec(先规划后执行);控制发给 Kiro 后端的 x-amzn-kiro-agent-mode header
  • 新增: 工作区路径配置 — 设置本地工作区根目录,用于加载 .kiro/steering/*.md 规则文件
  • 新增: Steering 文件注入 — always 类型的 steering 文档自动注入到每个请求的 system prompt 前面(支持 YAML frontmatter inclusion: always/fileMatch/manual
  • 新增: Context Usage breakdown 解析 — 从 Kiro 后端流式响应的 ContextUsageEvent 中捕获三项占比(Conversation / MCP tools / Steering files)
  • 新增: steeringLoader.ts 模块 — 读取、解析 frontmatter、格式化 steering 文件用于 prompt 注入

🔧 Enterprise 切号到 IDE 修复

  • 修复: resolveProfileArnForWrite 在 Enterprise 账号切号到 IDE 时返回了 BuilderId 占位符 ARN — IDE 使用该无效 ARN 导致 "Invalid token" 错误。现改为返回区域化 Enterprise 备用 ARN
  • 修复: 所有 5 处 resolveProfileArnForWrite 调用点均补传 region 参数,确保 Enterprise ARN 区域正确

🗑️ 批量订阅:删除失败账号

  • 新增: 批量订阅获取链接界面的"清失败"按钮旁新增「连删账号」勾选框 — 勾选后移除失败/过期链接时同时永久删除对应账号(用于清理封号账号)
  • 新增: 勾选时按钮变红色警告样式,确认弹窗提示"并永久删除账号"

⚡ Payload 大小限制

  • 调整: Payload 默认大小限制从 1.5MB 提升到 150MB(153600 KB),支持大图片附件;最大可配置上限提升到 200MB


v1.7.5 (2026-6-7) — Thinking Mode + Enterprise profileArn Full Fix + Agent Mode & Steering + Tool Use Leak Fix

🧠 Thinking Mode Support (Claude 4.6+)

  • New: Full thinking/extended thinking support for Claude 4.6+ models — automatically reads additionalModelRequestFieldsSchema from ListAvailableModels response to detect thinking capability
  • New: Maps OpenAI thinking: {type, budget_tokens} and reasoning_effort to Kiro's additionalModelRequestFields (supports both output_config and reasoning schema paths)
  • New: Maps Claude /v1/messages thinking: {type:"enabled", budget_tokens} to corresponding effort levels (low/medium/high/xhigh)
  • New: Streaming reasoning content output — reasoning_content field in OpenAI format, thinking content blocks in Claude format
  • New: THINKING_SIGNATURE_INVALID error auto-retry — strips reasoningContent from history and retries (signature invalidation due to model updates)

🔐 Enterprise Account profileArn Full Fix

  • Fix: Enterprise (IdC) accounts now correctly fetch real profileArn via POST codewhisperer.{region}.amazonaws.com/ListAvailableProfiles
  • Fix: Enterprise accounts forced to use CodeWhisperer endpoint (AmazonQ endpoint returns 400/403 for Enterprise IdC tokens)
  • New: Self-healing profileArn — all account types (BuilderId/Github/Google/Enterprise) attempt auto-fetch on first request; fetched ARN is persisted to disk via IPC callback, never re-fetched
  • New: Fallback ARN for Enterprise — region-aware arn:aws:codewhisperer:{region}:610548660232:profile/VNECVYCYYAWN used when auto-fetch fails
  • New: setProfileArnPersistCallback module-level callback — self-healed profileArn writes back to account pool + renderer store + memory snapshot
  • New: onProxyAccountUpdate IPC event — renderer listens and persists profileArn to both top-level and credentials.profileArn
  • Fix: Sync field mismatch — ProxyPanel and lazy-sync now read acc.profileArn || acc.credentials?.profileArn
  • Fix: refresh-account-token and verify-account-credentials now auto-fetch profileArn for ALL account types (not just Enterprise)
  • Fix: refreshAccountToken store action now saves returned profileArn to both top-level and credentials

🔧 Tool Use XML Leak Fix

  • Fix: Kiro backend occasionally sends <tool_use id="...">...</tool_use> XML as text content (in assistantResponseEvent / codeEvent) alongside structured toolUseEvent — these are now stripped from text output, preventing raw XML tags from appearing in client responses

🎛️ Agent Mode & Steering Support

  • New: Agent Mode selector in proxy panel — switch between Vibe (chat first, then build) and Spec (plan first, then build); controls x-amzn-kiro-agent-mode header sent to Kiro backend
  • New: Workspace Path configuration — set a local workspace path to load .kiro/steering/*.md rule files
  • New: Steering file injection — always-type steering documents are automatically injected into every request's system prompt (supports YAML frontmatter with inclusion: always/fileMatch/manual)
  • New: Context Usage breakdown parsing — captures ContextUsageEvent breakdown (Conversation / MCP tools / Steering files) from Kiro backend stream responses
  • New: steeringLoader.ts module — reads, parses frontmatter, and formats steering files for prompt injection

🔧 Enterprise Switch-to-IDE Fix

  • Fix: resolveProfileArnForWrite returned BuilderId placeholder ARN for Enterprise accounts when switching to IDE — IDE then used this invalid ARN causing "Invalid token" error. Now returns region-aware Enterprise fallback ARN
  • Fix: All 5 call sites of resolveProfileArnForWrite now pass region parameter for correct Enterprise ARN generation

🗑️ Subscription: Delete Failed Accounts

  • New: "Delete accounts" checkbox next to "Remove Failed" button in batch subscription link view — when checked, removing failed/expired links also permanently deletes the corresponding accounts (for banned account cleanup)
  • New: Button turns red when checkbox is active; confirmation dialog warns about permanent account deletion

⚡ Payload Size Limit

  • Change: Default payload size limit increased from 1.5MB to 150MB (153600 KB) to support large image attachments; max configurable limit raised to 200MB