Repository navigation
Hold a dropped file for the pane's first terminal session instead of losing it - #740
Merged
Merged
Conversation
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 #735
Related: #714, #716
Summary
a dropped file reaches the terminal as an attachment가 15 s 동안 pane 입력을 빈 문자열로 보았다(PR #733의 run, #716이 든 merge commit).COMMIT_GRACE(60 s)다.hide_node_link::attachments로 옮겨 hided와 core가 같이 읽는다.tick_async_operations(now), 250 ms)이 event 없이 확인한다. 넘으면 지금과 같은 unavailable 실패로 끝나고terminal.attachment.terminal_wait_expired진단을 남긴다.Review
COMMIT_GRACE로 잡았다. paste는 staged 파일 경로라, 그보다 늦게 쓰면 지워졌을 수 있는 경로를 붙인다.herdr-core/src/runtime/attachments.rs- runtime mutex 안의 상태 전이와 failure path. 쓰기는session.write_bytes(channel send)뿐이라 lock 안 I/O가 없다.herdr-core/src/runtime/terminal.rs- session 시작에서 첫 generation을 채택하고, session ready에서 기다리던 첨부를 다시 본다.reconcile_attachment_target한 번(첨부가 없으면 바로 반환). 새 timer나 thread는 없다.Evidence
a_drop_before_the_panes_first_session_is_written_to_that_session을 수정 전 core에서 돌리면 drop 직후 phase가failed라 실패한다.runtime::attachments10개 통과.ae20a1c5에서 돌렸다. 그 뒤 main(c1c472e7, Herdr bump 등, 겹치는 코드 없음)으로 rebase했고, 디스크 때문에 다시 build하지 않아 CI에 맡긴다.a_reconnect_resumes_from_the_client_cursor가 1회 실패했다("a delta at the current revision has no rest"). 단독 5회와 전체 재실행에서 통과했고 첨부를 쓰지 않는 test다.