Skip to content

Conversation

@learningbizz
Copy link
Contributor

We used to do a quickfix to get the reason, now we implemented the improved version using the correct resultReason method

We used to do a quickfix to get the reason, now we implemented the improved version using the correct resultReason method
# New spans
apps/web/ingest
apps/workers/workspaces/*/traces
provider-logs/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I might have gotten the "missing completion metadata" issue because I didnt have the FILES_STORAGE_PATH, FILE_PUBLIC_PATH, and PUBLIC_FILES_STORAGE_PATH env vars. Adding these created me lots of new files in these folders, so adding them in the gitignore

Comment on lines +118 to +121
const resultReason = specification.resultReason as (
result: EvaluationResultSuccessValue,
) => string | undefined
return resultReason(result) ?? ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const resultReason = specification.resultReason as (
result: EvaluationResultSuccessValue,
) => string | undefined
return resultReason(result) ?? ''
const resultReason = specification.resultReason(result as EvaluationResultSuccessValue)
return resultReason ?? ''

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS type complaint with this:

rule.ts(78, 5): 'pattern' is declared here.

@learningbizz learningbizz merged commit 444ed2d into main Jan 7, 2026
7 checks passed
@learningbizz learningbizz deleted the fix/use-reason-eval-method branch January 7, 2026 16:05
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants