Skip to content

Add the isolated multi-provider conversation V2 prototype (#21) - #24

Open
lseongjoo wants to merge 5 commits into
integration/issue-21from
feature/chat-v2
Open

lseongjoo wants to merge 5 commits into
integration/issue-21from
feature/chat-v2

Conversation

@lseongjoo

Copy link
Copy Markdown
Contributor

Requested by 이성주 · project thread

Refs #21, #22 · 대상 브랜치 integration/issue-21 (main의 aba9183에서 생성, main 아님)

요청

로컬 별도 클론에만 있던 대화 V2 프로토타입(2026-11-17, 커밋 5개)을 GitHub에 올려 검토할 수 있게 한다.

내용

격리된 다중 제공자 대화 V2: ChatSession, ChatView, 오프라인·실검증 모드, 대화 저장 체크포인트, 벤치마크, 검증 기록 문서(V2-IMPLEMENTATION.md, GUI-VALIDATION.md, PERFORMANCE-VALIDATION.md, LIVE-VALIDATION.md).

공개용으로 정리한 부분: 문서 속 로컬 절대 경로, 음성 ID, 실검증용 임시 폴더 이름을 일반 표현으로 바꿨습니다. 그래서 커밋 해시가 로컬 원본(f06a878..1fd43b9)과 다릅니다. 로컬 원본 브랜치는 그대로 둡니다. 코드 변경은 없습니다.

운영 로그

macOS 27.2.1 (26B131), CommandLineTools Swift 6.4.2, Xcode 없음, 전용 워크트리, 2026-11-25 KST, SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX26.5.sdk.

HEAD 명령 결과
49782c5 ./build.sh build exit 0
49782c5 ./build.sh test exit 0, "All tests passed." 대화 V2 mock·오프라인 검사, Connection, Conversation(134), Explanation style(49)

유료 호출·설치·재생은 하지 않았습니다. GUI·실제 제공자 검증은 문서에 적힌 2026-11-17 기록이 전부입니다.

참여 에이전트

  • 원래 구현: 에이전트·모델 미확인(커밋에 기록 없음)
  • GitHub 반영·정리: Claude Code (모델: Claude Opus 5.5)

🤖 Generated with Claude Code

@lseongjoo lseongjoo self-assigned this Nov 25, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T11:35:31.526361Z 49782c5 PR opened
🔒 Security Review ✅ Completed 2026-11-25T11:36:44.996358Z 49782c5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 49782c5759

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/UI/ChatView.swift
Comment on lines +123 to +124
let backend = ElevenLabsBackend(apiKey: key, settings: app.voiceSettings, models: models)
chat.play(message, identity: app.voiceId + "|" + app.modelId + "|" + app.voiceSettings.hash) { text in

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor the selected synthesis engine for conversation playback

When a user selects the local Qwen3 engine in Settings, conversation playback still requires an ElevenLabs key and unconditionally constructs ElevenLabsBackend. Consequently, local-only users cannot play responses, while users with an ElevenLabs key send response text to the cloud and incur usage despite selecting the local engine. Settings and VoicePreview.start still support and honor app.backendKind, so preview and actual conversation playback now use different engines. Dispatch playback through the selected backend, or remove the unsupported engine choice from V2 settings.

Useful? React with 👍 / 👎.

Comment on lines +242 to +244
if let cached = try? Data(contentsOf: file) { data = cached }
else {
data = try await synthesize(text)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Respect the audio-cache preference during chat playback

When the user disables the saved-audio reuse toggle in Settings, chat playback continues loading existing audio files unconditionally. ChatView.play never passes app.useCache into this path, although the retained Settings control persists that preference and the original AppState playback path checks it before cache lookup. As a result, disabling reuse cannot force fresh synthesis for a conversation response. Pass the preference into ChatSession.play and gate cache reads on it, or remove the ineffective control from V2.

Useful? React with 👍 / 👎.

@lseongjoo

Copy link
Copy Markdown
Contributor Author

검토 지적 두 건은 #21에 기록했습니다. 이 PR은 원본 보존용이라 동작 변경 없이 두고, V2 개발을 이어갈 때 먼저 고칩니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant