Skip to content

fix bugs related to agent chat, typescript version, predictTitle - #1648

Open
maekawataiki wants to merge 3 commits into
mainfrom
fix/1365-1594-1502
Open

fix bugs related to agent chat, typescript version, predictTitle#1648
maekawataiki wants to merge 3 commits into
mainfrom
fix/1365-1594-1502

Conversation

@maekawataiki

@maekawataiki maekawataiki commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Description of Changes

3件のバグを修正し、TypeScript バージョンを固定化しました。

  1. predictTitle で reasoning モデルの出力が会話タイトルに含まれる問題 (Claude Opus 4.5をデフォルトモデルに設定すると会話履歴に余分な文字列が入る #1365)

Claude Opus 4.5 等の reasoning モデルをデフォルトに設定すると、predictTitle の出力に
タグ等が含まれ、会話履歴のタイトルに内部思考プロセスがそのまま表示されていました。

修正内容: XML タグの除去ロジックを改善し、 タグがある場合はその中身を抽出、ない場合は全 XML タグをグローバルに除去するように変更しました。

  1. TypeScript 5.9+ で CDK デプロイが失敗する問題 (Deployment fails with TypeScript 5.9+ due to CDK incompatibility and missing version pinning #1594)

TypeScript 5.9 で導入された破壊的変更により、^5.4.5 等のバージョン指定では最新版がインストールされデプロイが失敗していました。

修正内容:

  • ルートの package.json に overrides で typescript: "~5.8.3" を追加
  • 各パッケージの TypeScript バージョンを ~5.8.3 に固定(patch のみ許容)
  1. Agent チャットでホーム画面から遷移時にエージェントが選択できない問題 (AgentチャットでのAgent選択について #1502)

ホーム画面の「Agent チャット」リンクからクエリパラメータ付きで遷移すると、useEffect の依存関係とクエリパラメータの残存により modelId
が再適用され続け、ドロップダウンからのエージェント変更が反映されませんでした。

修正内容:

  • クエリパラメータ消費後に navigate(pathname, { replace: true }) でURLをクリア
  • useEffect の依存配列から modelId を除外し、再実行ループを防止
  • 条件分岐を else if チェインに整理

Checklist

  • Modified relevant documentation
  • Verified operation in local environment
  • Executed npm run cdk:test and if there are snapshot differences, execute npm run cdk:test:update-snapshot to update snapshots

Related Issues

#1365
#1594
#1502

@maekawataiki maekawataiki added the auto-deploy 自動的に検証用 AWS アカウントにデプロイするための Label label Jul 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Issues or Pull Requests with no updates label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-deploy 自動的に検証用 AWS アカウントにデプロイするための Label stale Issues or Pull Requests with no updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant