Repository navigation
fix: keep the session when Herdr sends a tab before its workspace, and type Grok's lines on Windows - #1858
Merged
Conversation
…opping the session
…s, where a paste can be sent partway
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes with-hide/hide-private#360
Closes with-hide/hide-private#361
Summary
v1.0.4 후보를 떨어뜨린 Windows 가짜 모델 journey 실패 두 건의 원인을 고칩니다.
tab_created가workspace_created보다 먼저 올 수 있습니다. 코어는 이를 잘못된 이벤트로 보고 세션을 잠깐 내렸고, 그 사이 spawn의 호출자 확인이caller_context_changed로 거절됐습니다. 이제 이미 pane·layout에 하던 것처럼 탭도 워크스페이스가 올 때까지 잡아 두었다가 적용합니다.coalesce_live_keys). 부하로 틈이 생기면 줄바꿈이 Enter가 됩니다. Hide가 막을 수 없는 Grok 쪽 한계라서 INSTALL.md에 Windows 칸으로 적고, journey는 Windows의 Grok에만 같은 12줄을 Grok의 줄바꿈 키(Alt+Enter)로 입력합니다(단계 이름drafted).Review
herdr-core/src/session_sync/replica.rs- Herdr contract와 세션 동기화의 실패 경로. 부모가 오지 않은 탭을 거절 대신 보류합니다. 보류 상한 64 -> 96(32탭 버스트의 탭·pane·layout).scripts/agent_journey/composer.py- Windows의 Grok만 붙여넣기 대신 Alt+Enter 줄로 입력합니다. 다른 에이전트·시스템은 그대로입니다.Evidence
event.rejected ... tab_created ... missing workspace직후 재연결, 그리고 Herdr 0.9.5src/api/server.rs가 구독마다 따로 drain하는 코드.event_loop.rs의 10 ms 묶음 로직.a_tab_announced_before_its_workspace_applies_when_the_workspace_arrives: Herdr가 보낸 순서(저장소 w2, 탭 둘, pane 둘, layout 둘, 그 뒤 worktree w3)를 Strict·Reconcile 두 모드로 재생합니다. 고치기 전 코드는 Strict에서 거절, Reconcile에서 탭을 버려서 실패합니다.drafted(Alt+Enter 11개, 맨 CR 없음), Windows Codex와 macOS Grok은 기존 붙여넣기.TIMED_PASTE를 비우면 실패하는 것을 확인. journey 스크립트 테스트 161개 통과.drafted단계 통과(새 프롬프트 0), hided 로그에event.rejected없음.workspace_focused,tab_focused)가 아직 알려지지 않은 워크스페이스보다 먼저 오는 같은 계열은 이번에 바꾸지 않았습니다. 기존 테스트가 이를 divergence로 정해 두었습니다.Verification record