Skip to content

철회한 에이전트 앱의 새 세션에서 다시 승인 요청, 공통 mcpServers JSON 복사 (#43) - #44

Merged
lseongjoo merged 5 commits into
integration/issue-4from
claude/project-thread-dt9vy6
Nov 29, 2026
Merged

lseongjoo merged 5 commits into
integration/issue-4from
claude/project-thread-dt9vy6

Conversation

@lseongjoo

Copy link
Copy Markdown
Contributor

Closes #43 (통합 브랜치 기준). 승격 후보 #33 수동 확인 6/7에서 발견.

변경

  • 철회한 앱의 새 세션(새 도우미)이 연결하면 같은 키라도 승인 요청을 다시 띄우고, 사용자가 허용해야만 연결합니다. 허용하면 그 키의 철회가 풀립니다(저장 대기 철회 포함, 저장 실패 시 철회 유지).
  • revoked를 받은 도우미는 프로세스 수명 동안 revoked로 남습니다(TTS 재시작·재승인 뒤에도).
  • 다른 인스턴스의 철회를 채택하면 그 키의 기존 승인 요청·챌린지를 지웁니다.
  • MCP 설정 복사에 공통 mcpServers JSON(Claude 데스크톱 앱 등) 항목 추가. 복사만 하고 사용자 설정 파일은 고치지 않습니다. 연결·승인·재승인은 클라이언트와 무관하게 도우미-앱 공통 경로에서 처리합니다.
  • 문서·단위 테스트·픽스처 갱신.

증거 (사용자 Mac, 3daaa39)

  • rm -rf build && ./build.sh build 0 (ad-hoc), ./build.sh test 0 ("Ran 23 tests … OK", 전부 passed)
  • run_persistent_pairing 0 (15 groups; 철회 도우미가 재승인·재시작 뒤에도 revoked, 새 세션은 재승인 요청), run_agent_app_connections 0 (20 PASS), run_draft_titles 0, run_local_draft_candidate 0
  • 실제 서명 키·키체인·사용자 설정 미사용(일회용 PEM + rcodesign, TTS_FIXTURE_HOME).

독립 자문 (A 등급, 3회 상한 도달)

  • 1회차 b6d815f: Codex(gpt-6.2-sol, high) / Antigravity(init gemini-4-neon-high, 서빙 모델 미표시). P1 없음. P2 수용(도우미 revoked 고정, 외부 철회 시 요청 제거, pending 처리, JSON 안내).
  • 2회차 7648e51: 같은 앱의 다른 세션이 재허용 뒤 연결되는 경로 → 승인은 앱 단위라는 설계로 수용·문서화.
  • 3회차 3daaa39: 두 자문 공통 P2 1건 — 잊기 당시 유휴 상태라 revoked를 받지 못한 그 도우미가 TTS 재시작 뒤 새 승인 요청을 띄우거나, 사용자가 같은 앱을 다시 허용한 뒤 연결될 수 있음. 클릭 없이 연결되는 새 경로는 둘 다 찾지 못함. 규칙대로 자문받은 HEAD를 병합하고 이 P2와 P3(mcpServers 없는 기존 JSON 병합 안내)는 #37로 넘깁니다.

Agent: Claude Code (runtime model unverified)


Generated by Claude Code

Revoking an app's approval kept its key refused for good, and the app
offered no way back short of an undocumented --forget-key run. Now the
revoked live helper stays blocked, but a new session of that app gets a
fresh approval request; allowing it lifts the key's revocation (and any
unsaved revocation of it). A failed save leaves the key revoked.

Agent: Claude Code (runtime model unverified)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7NX2yks21D5Tau2tYG
Adds "Claude 데스크톱 앱 · claude_desktop_config.json" to the MCP setup
menu: an mcpServers entry with the bundled helper path, copied only. The
user merges it through the desktop app's Edit Config and restarts it. The
desktop app is identified by its signer like any launcher and approved once
as its own app; nothing in the trust boundary changes.

Agent: Claude Code (runtime model unverified)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7NX2yks21D5Tau2tYG
Agent: Claude Code (runtime model unverified)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7NX2yks21D5Tau2tYG
…ion (#43)

Round 1 advice (Codex, Antigravity):
- A helper told "revoked" stays revoked for its lifetime, so an app restart
  or a re-approval of the same key does not reattach that session.
- Approval requests raised before their key was revoked by another instance
  are removed when that revocation is adopted.
- trust() withdraws a pending revocation only right before saving, so
  Failure.full/hostChanged leave it pending.
- The mcpServers paste hint matches the copied structure.

Agent: Claude Code (runtime model unverified)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7NX2yks21D5Tau2tYG
Round 2 advice: a session of the revoked app that never received "revoked"
can connect again once the user re-approves that app. Approval is per app
(registered host and key), not per session, as it is for every approved
app across restarts; this is documented rather than changed. The paste
hint now says to merge the whole server block.

Agent: Claude Code (runtime model unverified)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LJG7NX2yks21D5Tau2tYG
@lseongjoo
lseongjoo merged commit 1967d91 into integration/issue-4 Nov 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 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-29T02:35:28.364429Z 3daaa39 PR opened
🔒 Security Review ✅ Completed 2026-11-29T02:36:36.429248Z 3daaa39 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.

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.

2 participants