Skip to content

feat(skills): configure upload size limit#1156

Open
evgyur wants to merge 1 commit into
nextlevelbuilder:devfrom
evgyur:feat/skills-upload-size-config
Open

feat(skills): configure upload size limit#1156
evgyur wants to merge 1 commit into
nextlevelbuilder:devfrom
evgyur:feat/skills-upload-size-config

Conversation

@evgyur
Copy link
Copy Markdown

@evgyur evgyur commented May 19, 2026

Summary

  • Adds skills.max_upload_size_mb to the JSON/JSON5 config with the current 20 MiB behavior as the default.
  • Adds GOCLAW_SKILLS_MAX_UPLOAD_SIZE_MB as an environment override.
  • Clamps the effective global upload size to the documented safety range and wires it into /v1/skills/upload.

Test plan

  • gofmt -w internal/config/defaults.go internal/config/config.go internal/config/config_load.go internal/config/skills_config_test.go internal/http/skills.go internal/http/skills_upload.go internal/http/skills_upload_test.go
  • go test ./internal/config -run 'TestSkillsConfig|TestLoadSkillsMaxUploadSize' -count=1
  • go test ./internal/http -run 'TestHandleUpload_UsesConfiguredMaxUploadSize|TestHandleUpload_AutoInstallsMissingDepsAndKeepsSkillActive' -count=1
  • go test ./internal/config ./internal/http ./cmd -count=1
  • git diff --check

Closes #1153

Add a skills.max_upload_size_mb config option and GOCLAW_SKILLS_MAX_UPLOAD_SIZE_MB override while preserving the 20 MiB default upload cap.

Wire the effective limit into skill ZIP uploads and cover config/env parsing plus handler enforcement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add configurable max upload file size for skills (currently hardcoded at 20MB)

1 participant