Skip to content

fix: set org header for AI Fix #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 28, 2025
Merged

fix: set org header for AI Fix #106

merged 5 commits into from
Jul 28, 2025

Conversation

ShawkyZ
Copy link
Contributor

@ShawkyZ ShawkyZ commented Jul 28, 2025

Description

Provide description of this PR and changes, if linked Jira ticket doesn't cover it in full.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

@ShawkyZ ShawkyZ requested review from a team as code owners July 28, 2025 13:34
@github-actions github-actions bot added the fix label Jul 28, 2025
Copy link

snyk-io bot commented Jul 28, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@@ -63,15 +63,15 @@ type DeepCodeLLMBindingImpl struct {
instrumentor observability.Instrumentor
}

func (d *DeepCodeLLMBindingImpl) SubmitAutofixFeedback(ctx context.Context, requestId string, options AutofixFeedbackOptions) error {
func (d *DeepCodeLLMBindingImpl) SubmitAutofixFeedback(ctx context.Context, fixId string, options AutofixFeedbackOptions) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this wasn't the requestID
LS is sending the fixId here

We will need to refactor this after the planned hotfix.

@@ -43,7 +43,7 @@ func (d *DeepCodeLLMBindingImpl) runExplain(ctx context.Context, options Explain
}
}

responseBody, err := d.submitRequest(ctx, u, requestBody)
responseBody, err := d.submitRequest(ctx, u, requestBody, "", "")
Copy link
Contributor Author

@ShawkyZ ShawkyZ Jul 28, 2025

Choose a reason for hiding this comment

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

requestId and orgId weren't being set before for explain. I will leave it as is for now.

@ShawkyZ ShawkyZ changed the title fix: set org header fix: set org header for AI Fix Jul 28, 2025
@github-actions github-actions bot added fix and removed fix labels Jul 28, 2025
@ShawkyZ ShawkyZ merged commit 4150ed0 into main Jul 28, 2025
13 checks passed
@ShawkyZ ShawkyZ deleted the fix/autofix-headers branch July 28, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants