Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,599 in github.com/alibaba/open-code-review
⨍
Functions
7,599
◇
Types & classes
815
↓ 4 callers
Function
openAIClient
The four blind spots share one shape: the observer sees HTTP 200, the failure surfaces afterwards, and nothing downstream would notice the omission —
internal/llm/retry_boundary_test.go:27
↓ 4 callers
Function
page
(commits, options = {})
scripts/github-actions/check-pr-commit-policy.test.js:38
↓ 4 callers
Function
parseNameStatus
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:161
↓ 4 callers
Function
parseWebviewMessage
* Parses one frontend message and never throws: a parse failure yields [WebviewToHost.Malformed] and * an unrecognised type yields [WebviewToHost.Unk
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/messages/WebviewMessages.kt:137
↓ 4 callers
Method
post
(ctx context.Context, endpoint string, form url.Values, target any)
internal/chatgptauth/oauth.go:117
↓ 4 callers
Method
post
(msg: ConfigPanelHostToWebview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:61
↓ 4 callers
Method
post
(msg: HostToWebview)
extensions/vscode/src/extension/providers/SidebarProvider.ts:56
↓ 4 callers
Method
post_discussion
(self, discussion, comment_id=None)
examples/gitlab_ci/post_review_test.py:198
↓ 4 callers
Function
preserveCheckpointMarker
(newBody, oldBody)
scripts/github-actions/post-review-comments.js:3177
↓ 4 callers
Method
preview
(ctx context.Context)
internal/agent/preview.go:56
↓ 4 callers
Function
previewJSON
(t *testing.T, repo string, extra ...string)
cmd/opencodereview/default_to_head_e2e_test.go:64
↓ 4 callers
Function
printVersion
()
cmd/opencodereview/version.go:28
↓ 4 callers
Function
processRunning
(pid int)
acp/internal/orchestrator/process_alive_unix_test.go:15
↓ 4 callers
Method
progressError
(err error)
internal/llmloop/loop.go:85
↓ 4 callers
Function
progressWriter
(destination io.Writer, enabled bool)
internal/stdout/style.go:37
↓ 4 callers
Method
read
Reads the file and converts it to the plugin's internal camelCase config; returns null when the file is missing or invalid. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:37
↓ 4 callers
Method
read
(self)
examples/gerrit_ci/post_review_test.py:518
↓ 4 callers
Function
readJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:206
↓ 4 callers
Function
readStderr
(r io.Reader, byteLimit, lineLimit int, emit func(Event))
acp/internal/orchestrator/streams.go:79
↓ 4 callers
Method
reloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config and refreshes derived provider TUI state so the UI matches persisted data after a failed save. Ret
cmd/opencodereview/provider_tui.go:1736
↓ 4 callers
Method
reloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config so in-memory state matches persisted data after a failed save. Returns false when reload could not
cmd/opencodereview/provider_tui.go:2822
↓ 4 callers
Function
renderListName
(name string, isCursor bool)
cmd/opencodereview/provider_tui.go:2139
↓ 4 callers
Method
reportTimeout
(ctx context.Context, id acp.SessionId)
acp/internal/adapter/prompt.go:141
↓ 4 callers
Method
requireDefaultStorage
()
extensions/vscode/src/extension/services/CliService.ts:24
↓ 4 callers
Function
requireExec
(t *testing.T)
internal/mcp/stdio_test.go:248
↓ 4 callers
Function
resolveBackground
resolveBackground determines the effective background from the flag combination. --background-file wins over --background; the commit-message fallback
cmd/opencodereview/background_file.go:50
↓ 4 callers
Function
resolveConversation
(m manifestConversation)
internal/config/template/template.go:191
↓ 4 callers
Function
resolveEnv
(over = {})
scripts/github-actions/post-review-comments.test.js:5252
↓ 4 callers
Function
resolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:279
↓ 4 callers
Function
reviewModeString
(from, to, commit string)
internal/agent/util.go:146
↓ 4 callers
Function
rollbackCfgActiveModel
(cfg *Config, providerName, prevModel string)
cmd/opencodereview/provider_tui.go:479
↓ 4 callers
Method
ruleConfigSHA256
ruleConfigSHA256 is the deterministic identity of the resolved rule configuration this run operates with: the resolver's effective rule-text layers (c
internal/agent/agent.go:1088
↓ 4 callers
Function
runChatGPTLogout
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:90
↓ 4 callers
Method
runGitSplit
runGitSplit runs git with stdout and stderr kept apart, for the callers that quote the failure back to the user. runGit's combined output cannot be q
internal/diff/git.go:680
↓ 4 callers
Function
runLauncher
(fixture, args, signal, readyToken)
bin/ocr.test.js:138
↓ 4 callers
Function
runOcr
(args: string[], options: RunOptions)
plugins/open-code-review/opencode/open-code-review.ts:255
↓ 4 callers
Function
runScanPreview
(cc *commonContext, scanTpl *template.ScanTemplate, scanPaths []string, outputFormat string, out io.Writer)
cmd/opencodereview/scan_cmd.go:277
↓ 4 callers
Method
run_main_with_captured_poster
(self, env_overrides, result=None)
examples/gitlab_ci/post_review_test.py:1791
↓ 4 callers
Method
run_with_urlopen
(self, fake_urlopen, config=None, discussion=None)
examples/gitlab_ci/post_review_test.py:1327
↓ 4 callers
Function
sarifFingerprints
sarifFingerprints builds a stable partialFingerprints entry for a finding. The fingerprint is based on Path + Category + ExistingCode (not message.tex
cmd/opencodereview/sarif.go:288
↓ 4 callers
Function
sarifInvocationFromRun
sarifInvocationFromRun builds the run.invocations entry from the manifest's terminal state and any warnings collected during the review. executionSuc
cmd/opencodereview/sarif.go:314
↓ 4 callers
Function
sarifResultFromComment
sarifResultFromComment maps a single LlmComment to a SARIF result. Field mapping follows FR-3 in the requirements spec: - Path → locations[].
cmd/opencodereview/sarif.go:228
↓ 4 callers
Method
scanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:264
↓ 4 callers
Function
searchDocs
(query: string, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:170
↓ 4 callers
Method
selectScanItems
selectScanItems is the single pre-dispatch selection pass shared by Run and Preview. Keep the size check after the normal reviewability rules so an it
internal/scan/agent.go:432
↓ 4 callers
Method
selectedModelFromState
()
cmd/opencodereview/provider_tui.go:2001
↓ 4 callers
Method
set
Writes a single config entry and returns the config after the write. [CliService.runRaw] throws [CliException] when the CLI exits non-zero. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:185
↓ 4 callers
Method
set
(stage string)
acp/internal/intent/llm/diagnostics.go:30
↓ 4 callers
Function
setRulesCheckRepo
setRulesCheckRepo points the rulesCheckCmd's package-level --repo flag at repo for the duration of the test, restoring it afterward. runRulesCheck rea
cmd/opencodereview/rules_cmd_test.go:46
↓ 4 callers
Function
setupRecordingTelemetry
setupRecordingTelemetry enables telemetry through the public Init entrypoint, then redirects the global tracer provider to an in-process span recorder
internal/scan/trace_parent_test.go:49
↓ 4 callers
Function
startCancellableCopy
(dst, src *os.File, acquireThread func() (syscall.Handle, error))
acp/cmd/ocr-acp/stdio_windows.go:158
↓ 4 callers
Function
statusBadge
statusBadge renders the per-file status tag. The letter carries the meaning, so with color disabled the bare "[A]"/"[M]"/... form is still unambiguous
cmd/opencodereview/output.go:867
↓ 4 callers
Function
stripThinkTags
stripThinkTags removes reasoning wrapper tags from content.
internal/llm/client.go:1826
↓ 4 callers
Function
stubForceExit
stubForceExit replaces the process-level force-exit hook with a recording stub so tests can observe the second-signal path without terminating the tes
cmd/opencodereview/interrupt_test.go:25
↓ 4 callers
Method
summaryEnabled
()
internal/scan/agent.go:103
↓ 4 callers
Function
toolResultMessages
toolResultMessages answers every tool call in the turn. Both supported protocols reject an assistant turn whose tool calls are not all answered, so le
cmd/opencodereview/llm_cmd.go:219
↓ 4 callers
Method
transition
transition moves a selected item to a terminal state through the single coverage entry point. Unknown item_id, an invalid failed classification, an em
internal/session/manifest.go:618
↓ 4 callers
Method
triggerAsyncCompression
triggerAsyncCompression kicks off a background compression job for the conversation owning st. A no-op when a job is already pending — the check-and-s
internal/llmloop/compression.go:381
↓ 4 callers
Function
trimGitUsage
(stderr string, exitCode int)
internal/tool/code_search.go:272
↓ 4 callers
Function
unmarshalChatCompletionBody
These tests are the deterministic, no-live-model reproductions for issue #805: a response that carries provider reasoning must still carry it, byte fo
internal/llm/native_turn_test.go:22
↓ 4 callers
Function
unquoteGitPath
(path: string)
extensions/vscode/src/extension/services/gitMap.ts:130
↓ 4 callers
Method
updateManualForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1506
↓ 4 callers
Function
useSectionTitleStyle
()
pages/src/hooks/useResponsiveStyle.ts:15
↓ 4 callers
Method
valid
valid reports whether c is one of the fixed attempt error classes.
internal/llm/retry_report.go:38
↓ 4 callers
Method
valid
valid reports whether c is one of the fixed item failure classes.
internal/session/manifest.go:69
↓ 4 callers
Function
validateBaseURL
validateBaseURL checks that a provider Base URL has an http or https scheme and a non-empty host, giving the user immediate feedback rather than a run
cmd/opencodereview/provider_cmd.go:472
↓ 4 callers
Function
validateProviderName
(name string)
cmd/opencodereview/config_cmd.go:1061
↓ 4 callers
Function
validateRepoLinks
(links, probe)
scripts/github-actions/check-plugin-contract.js:320
↓ 4 callers
Function
visit
(tokens: Token[])
pages/src/utils/headingId.ts:85
↓ 4 callers
Function
withUsage
(resp *llm.ChatResponse, prompt int64)
internal/reviewtask/loop_test.go:1240
↓ 4 callers
Method
write
(name string, v any)
internal/chatgptauth/store.go:137
↓ 4 callers
Function
writeCodeBlock
(b *strings.Builder, path, code string)
acp/internal/adapter/presentation/markdown.go:16
↓ 4 callers
Function
writeOutError
writeOutError surfaces deferred write errors from writers that record them (lazyFileWriter); plain writers such as os.Stdout report nil.
cmd/opencodereview/shared.go:770
↓ 3 callers
Method
AddToolResult
AddToolResult appends a tool call result to this task record and writes a tool_call record to the JSONL stream.
internal/session/history.go:590
↓ 3 callers
Function
Build
Build compiles the stub once per test binary.
acp/internal/testutil/stub.go:55
↓ 3 callers
Method
CallTool
(ctx context.Context, req LLMRequest)
acp/internal/intent/parser.go:31
↓ 3 callers
Function
ChatGPTModels
(ctx context.Context)
internal/llm/chatgpt.go:26
↓ 3 callers
Function
CloseWithoutFinalize
CloseWithoutFinalize releases the session JSONL writer and its exclusive lock without writing session_end. Tests that hold a live session open across
internal/session/testing.go:22
↓ 3 callers
Function
ContentLogging
ContentLogging returns true when content logging is enabled via OCR_CONTENT_LOGGING.
internal/telemetry/provider.go:78
↓ 3 callers
Function
EffortNames
EffortNames returns the accepted values for shell completion and error messages.
internal/config/template/effort.go:25
↓ 3 callers
Method
ExecutionStatus
(runErr error)
internal/behaviortask/result.go:123
↓ 3 callers
Function
FailureSummary
(err error)
internal/behaviortask/runner.go:283
↓ 3 callers
Method
FinalManifest
FinalManifest returns the frozen manifest stored for this run, or nil when the run produced none (legacy/scan, or a construction failure).
internal/session/history.go:235
↓ 3 callers
Method
ForEachInOrder
ForEachInOrder visits Included and Excluded in the original changeset order. providerReason is ExcludeNone for a diff the review may process, and othe
internal/diff/git.go:86
↓ 3 callers
Function
HomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:129
↓ 3 callers
Function
LoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:48
↓ 3 callers
Function
LoadGitignoreAtRef
(ctx context.Context, repoDir, ref string, runner *gitcmd.Runner)
internal/diff/gitignore.go:19
↓ 3 callers
Function
LoadGitignorePatterns
LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
internal/diff/gitignore.go:76
↓ 3 callers
Function
LoadReviewResumeState
LoadReviewResumeState replays a review session, dropping records it cannot parse. Review reuse is gated on the parent manifest rather than on these li
internal/session/resume.go:108
↓ 3 callers
Function
MatchFileNames
(ctx context.Context, files []string, queryName string, caseSensitive bool, limit int, allowed func(string) bo
internal/tool/file_find.go:63
↓ 3 callers
Method
MergeBase
MergeBase returns the computed merge-base commit hash for range mode.
internal/diff/git.go:201
↓ 3 callers
Function
NativePathFromFileURL
NativePathFromFileURL converts a local file: URL path into an OS path. Callers must already have rejected non-file schemes, hosts, queries and fragmen
acp/internal/adapter/workspace/fileurl.go:16
↓ 3 callers
Function
NewAnthropicBedrockClient
NewAnthropicBedrockClient creates a client for Anthropic models served by AWS Bedrock. The wire format is the Messages API, so this reuses AnthropicC
internal/llm/client.go:1265
↓ 3 callers
Function
NewCommentWorkerPool
NewCommentWorkerPool delegates to reviewtask.NewCommentWorkerPool.
internal/agent/agent.go:50
↓ 3 callers
Function
NewRunner
(ctx context.Context, deps Deps, input Input)
internal/behaviortask/runner.go:57
↓ 3 callers
Function
NewWorkspaceProviderWithBase
(repoDir string, base InputResolution, runner *gitcmd.Runner)
internal/diff/workspace.go:16
↓ 3 callers
Function
OfName
(name string)
internal/tool/definitions.go:29
↓ 3 callers
Function
ParseRetryCodes
ParseRetryCodes parses a comma-separated list of HTTP status codes that should trigger retry. Non-4xx codes return an error; SDK-default codes (408, 4
internal/llm/resolver.go:995
↓ 3 callers
Function
PrintToolCallError
PrintToolCallError prints a line when a tool fails. Example: [ocr] ✘ file_read "internal/config/rules/loader.go" failed: permission denied
internal/telemetry/events.go:123
↓ 3 callers
Function
PrintToolCallStarted
PrintToolCallStarted prints a line when a tool begins execution. Args are summarized as key-value pairs (path, search terms, etc.). Example: [ocr] ▶
internal/telemetry/events.go:106
← previous
next →
1,001–1,100 of 7,599, ranked by callers