Split the oversized files — pure file moves, no behavior change
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 18/100
Hướng nghiên cứu
Start with one bounded target, such as core/plugins/inferenceparser/plugin.go and its existing anthropic.go and responses.go siblings, and move the OpenAI dialect into openai.go without changing signatures. Run the existing package tests before and after each move to confirm no behavior change. Scope covers nine large files, so the issue is better split into one PR per file; done means the original file shrinks and the same tests pass unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What
Several files have outgrown their packages' own discipline. In each case the seams are already clean function boundaries, so these are pure same-package file moves — no signature changes, tests untouched:
core/listener/forwardproxy/server.go(2954 lines) — five jobs: relay core, CONNECT tunneling, bridged-tunnel TLS (+CA/handshake helpers), session identity/attribution (~430 lines, the densest cluster), SSE relay. Split intotunnel.go,bridging.go,identity.go,record.go,stream.go; server.go lands ~600. The package already proved this style withprocess.go/sniff.go/transparent.go.cmd/agentop/tui/app.go(3089) — model state, a ~900-lineupdate()type switch (~55 case types), view dispatch, yank file I/O, subprocess plumbing. Move yank I/O and exec wrappers out; splitupdate()by message family to match the per-pane files.core/observe/claude/harvest.go(2040) — orchestration, filesystem scan, transcript parsing, and ~800 lines of pure text scrubbing (scrubRunes,stripANSI,stripHarnessSpans, …). Extractscrub.go+prompt.go.core/session/store.go(1472) — append/trim engine, pub/sub, views, summary/money (~365 lines), lifecycle. Extractsummary.go+subscribe.go.core/cost/usage/usage.go(1846) +snapshot.go(1584) — extractwindow.go(pure time math, ~500 lines),labels.go,series.go.core/plugins/cpex/cmf_body.go(1128) — three separable jobs: JSON-presentability heuristics, extension→CMF part mapping, MCP body mutation. Extract three files.core/plugins/inferenceparser/plugin.go(1075) — the entire OpenAI dialect lives inline (~450 lines: parse, frame fold, SSE, wire types) thoughanthropic.goandresponses.goexist as the per-dialect pattern. Extractopenai.go.cmd/agentop/cmd_bob.go(2159) — contains a hidden ~400-line byte-level JSON editor (bobSetKey/bobFindMember/bobSpliceOut/…,:620-1028) with nothing to do with Bob semantics. Extractbob_settings_json.gowith its own test surface.cmd/cortex/main.go—main()is ~900 lines of assembly (:322-1220): session store + ledger + archive wiring, TLS-bridge assembly (~130 lines), shutdown choreography. The package already haslocal.go,archive.go,listeners.go,supervise.go— drain the three blocks into them.
Lower priority, same pattern: cmd/agentop/tui/keys.go (1549 — layout() and handleEditKey have nothing to do with keys) and tui/sessions_pane.go (1769 — the ~500-line title/grapheme block is self-contained and owns a 3,322-line test file).
Found in the 2026-10-29 structural audit of code organization.
- Ngôn ngữ chính
- Go
- Star
- 21
- Fork
- 43
- Merge trung bình
- 13 giờ 8 phút
- Pull request đã merge (30 ngày)
- 267
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rossoctl/cortex
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
UI shows costs for all sessions even when drilled into a sessionCó thể đã có người làm @esnible đã nhận 16 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
rossoctl/cortex#1116 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Cost/session layering: ledger snapshot logic in the HTTP layer; import edges point both waysĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rossoctl/cortex
Issue tương tự
-
ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
evcc-io/evcc#35605 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
nightgauge/nightgauge#2732 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix below CVEsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100