fix: section 3 review fixes — git timeout, picker create-row, doc/measure items #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/review-notes-optimization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Section 3 of the code-review fixes — five small, independent items across
internal/sync/,internal/edit/,internal/views/. Executed via subagent-driven-development;go vet ./...+ fullgo test ./...green; final whole-branch review (opus) returned ready-to-merge with no Critical/Important findings.Changes
context.WithTimeout(syncTimeout, default 2m, overridable for tests) so a hunggit pushcan't leak the async sync goroutine or wedge thesyncingsingle-flight flag forever. NewTestRunTimesOutOnSlowGit(mutation-resistant — verified the test fails if the context isn't wired into the command).+ Createrow whenever the exact name doesn'tResolve, even if fuzzy matches exist — fixes a dead-end where a name likeNotes(fuzzy-matchingNested Notes Archive) could never be created. (UX decision: Option B over keeping current behavior.) One golden updated.WriteFilepreserves rwx permission bits only — setuid/setgid/sticky dropped, owner/group reassigned to the weft process user.Result.Pulled's HEAD-diff is sufficient (logic confirmed sound, not a defect — comment only).View(); the proposed re-tint/dirty memoization was closed after measurement — 93% of cost is bubbles/textarea's ownta.View()which the cache can't avoid, and it misses on every keystroke. Benchmark retained as a guard.Verification
go vet ./...clean;go test ./...green (7 packages).Diffstat: 7 files, +65 / −10.