Repository navigation
fix: honor file input defaults across app execution (lts/1.13.x) - #45666
Merged
Merged
Conversation
(cherry picked from commit 430d9af)
zhangx1n
requested review from
CodingOnStar,
QuantumGhost,
hyoban,
iamjoel,
laipz8200 and
zxhlyh
as code owners
November 5, 2026 10:48
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-11-10 06:23:02.011440887 +0000
+++ /tmp/pyrefly_pr.txt 2026-11-10 06:22:55.859414288 +0000
@@ -2869,7 +2869,9 @@
ERROR No matching overload found for function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, workflow=SimpleNamespace, user=SimpleNamespace, args=dict[str, dict[@_, @_] | str], invoke_from=Literal[InvokeFrom.SERVICE_API], workflow_run_id=Literal['workflow-run-id'], streaming=Literal[False]) [no-matching-overload]
--> tests/unit_tests/core/app/apps/test_advanced_chat_app_generator.py:165:49
ERROR Object of class `Account` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/app/apps/test_base_app_generator.py:488:9
+ --> tests/unit_tests/core/app/apps/test_base_app_generator.py:494:9
+ERROR `list[str]` is not assignable to attribute `allowed_file_types` with type `Sequence[FileType] | None` [bad-assignment]
+ --> tests/unit_tests/core/app/apps/test_base_app_generator.py:622:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `model_config` with type `ModelConfigWithCredentialsEntity` in function `core.app.apps.base_app_runner.AppRunner.recalc_llm_max_tokens` [bad-argument-type]
--> tests/unit_tests/core/app/apps/test_base_app_runner.py:64:38
ERROR Argument `SimpleNamespace` is not assignable to parameter `model_config` with type `ModelConfigWithCredentialsEntity` in function `core.app.apps.base_app_runner.AppRunner.recalc_llm_max_tokens` [bad-argument-type]
|
Contributor
Pyrefly Type Coverage
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## lts/1.13.x #45666 +/- ##
=============================================
Coverage ? 66.42%
=============================================
Files ? 4681
Lines ? 186431
Branches ? 36437
=============================================
Hits ? 123829
Misses ? 60426
Partials ? 2176
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
wylswz
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backports #44780 (
430d9aff) tolts/1.13.xwithcherry-pick -x. Fixes Linear ENG-1427: a Start node file input with a configured default works in Studio, but the published WebApp shows an empty field and produces no output. Companion to #45665 (lts/1.17.x).file/file-listdefaults.'', and a cleared list submits[], so a clear no longer silently restores the default.Differences from upstream on this branch:
lts/1.13.xhas nocore.app.file_accessscope, andfactories.file_factoryresolves uploads by tenant only, so default files are already reachable. This PR portsapply_file_input_defaultsand omitsgrant_file_default_access, its generator calls, the related generator tests, and the.importlinterentries. If the access-scope work is ever backported here, the grant must come with it.isActiveguards and the chat reset from the partial backport fix(web): reset attachment inputs when starting a new conversation #45550 instead of applying them again.app-parameters-select.tsandshare.spec.tsdon't exist on LTS.fetchAppParamsalready passesdefaultthrough unchanged.defaultbrokeconfig-var/config-modal, where the text, number and select editors passdefaulttoInput. AscalarDefaultnarrowing fixes that.Validation
uv run --project api pytestoncore/app/apps/,services/app/andtest_app_generate_service.py: 437 passed. With the production changes reverted, 13 of the new backend tests fail.vp teston the chat, file-uploader, text-generation, workflow inputs panel and model-config suites: 1772 passed. With the production changes reverted, the new Run Once and chat tests fail.ruff format --check,ruff check, andlint-imports(10 contracts kept): passed.tsc --noEmitandtsgo --noEmit: 0 errors.eslinton the touched files: 0 errors.check-hotfix-cherry-picks.sh: verified the cherry-pick provenance from main.