instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
strawberry-graphql__strawberry__4347
strawberry-graphql/strawberry
4,347
defect
e4555a6a28329c86bf03196d1253fafe5f0f9974
5f41f532d3c2be358c0076a8d5dbd79259051ac6
Attach errors to ftv1 traces to ensure they're propagated to GraphOS
<!--- Provide a general summary of your changes in the title above. --> This PR attaches errors (if any) to the ftv1 traces that get sent to Apollo GraphOS. Without attaching the errors Apollo Studio Insights will not be able to associate any errors to the relevant subgraph span and it will not be able to extract an e...
diff --git a/strawberry/extensions/tracing/apollo_federation.py b/strawberry/extensions/tracing/apollo_federation.py index 69d3b37292..af7ec40867 100644 --- a/strawberry/extensions/tracing/apollo_federation.py +++ b/strawberry/extensions/tracing/apollo_federation.py @@ -156,6 +156,48 @@ def SerializeToString(self) -> b...
7
4
0
[{"id": "G0", "claim": "The error-capture logic duplicated between the async and sync `resolve` methods should be extracted into a shared helper (e.g. `_make_error`) to avoid duplication and keep both paths aligned as the error format evolves.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
strawberry-graphql__strawberry__4351
strawberry-graphql/strawberry
4,351
defect
1f73a64d32b6915dffea68b856b024f611674075
f20c103998437927614d1953cc0f8b1a8ef4d9c8
Feat/federated ftv1 extension with errors
<!--- Provide a general summary of your changes in the title above. --> This PR attaches errors (if any) to the ftv1 traces that get sent to Apollo GraphOS. Without attaching the errors Apollo Studio Insights will not be able to associate any errors to the relevant subgraph span and it will not be able to extract an e...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..e47144e6d4 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,5 @@ +Release type: minor + +This release adds support for Apollo Federation inline tracing (FTV1) format. + +When a request includes the `apollo-federation-include-trace: ftv1` header, Straw...
4
3
0
[{"id": "G0", "claim": "The protobuf field tags and wire types in _SimpleError.SerializeToString and _SimpleNode.SerializeToString are hard-coded magic byte values; consider defining named constants or adding a brief comment mapping them to field numbers and wire types to make future maintenance and verification easier...
null
strawberry-graphql__strawberry__4352
strawberry-graphql/strawberry
4,352
defect
1f73a64d32b6915dffea68b856b024f611674075
fe768abd9811e883d305c2d2b8dc4f29b485965c
fix: split yield await in channel listener to fix exception routing
## Description `_listen_to_channel_generator` uses `yield await awaitable` inside `try/except asyncio.TimeoutError`. Due to how CPython compiles this compound expression, the outer `yield` falls within the `try` block's bytecode exception table range. This causes exceptions thrown into the generator at the `yield` poi...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..f9d93c6968 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,16 @@ +Release type: patch + +This release fixes a bug in `_listen_to_channel_generator` where `yield await +awaitable` inside `try/except asyncio.TimeoutError` caused the `yield` to fall +wi...
1
1
0
[{"id": "G0", "claim": "Consider adding a short inline comment near the split `result = await awaitable` / `yield result` explaining the subtle bytecode/exception-table reason for not using `yield await awaitable`, so future refactors don't accidentally reintroduce the bug.", "category": "maintainability", "verdict": "...
null
strawberry-graphql__strawberry__970
strawberry-graphql/strawberry
970
defect
944432d32272162216824ca086ae80e47bd48155
d93893a467ee3b2992222d7f638df9692838c4e3
Fix aiohttp subscription request separation
<!--- Provide a general summary of your changes in the title above. --> <!--- This template is entirely optional and can be removed, but is here to help both you and us. --> <!--- Anything on lines wrapped in comments like these will not show up in the final text. --> ## Description <!--- Describe your change...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 00000000000..d70385def3e --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,4 @@ +release type: patch + +This release fixes that AIOHTTP subscription requests were not properly separated. +This could lead to subscriptions terminating each other. diff --git a/strawb...
1
1
0
[{"id": "G0", "claim": "The new coverage misses reported by Codecov should probably be addressed.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
strawberrymusicplayer__strawberry__2049
strawberrymusicplayer/strawberry
2,049
defect
d02878ff0fc3393c423708af82f06afea1fa7c3d
ba71ec6109f58f67021e7bd5067f2f00259efa38
Fix previous row being reset by mpris2
`Mpris2::CanGoPrevious` was calling `Playlist::previous_row` causing `played_indexes_` to be reset breaking previous track feature
diff --git a/src/core/player.cpp b/src/core/player.cpp index 1f430d3759..a80f3f3bb1 100644 --- a/src/core/player.cpp +++ b/src/core/player.cpp @@ -630,7 +630,7 @@ void Player::PreviousItem(const EngineBase::TrackChangeFlags change) { last_pressed_previous_ = now; } - int i = playlist_manager_->active()->prev...
2
2
2
[{"id": "G0", "claim": "previous_row() iterates played_indexes_ oldest-to-newest, so it returns the first played track instead of the most recently played track before the current one, breaking existing expectations (PlaylistTest.Indexes) and consistency with take_previous_row(); it should walk the list in reverse orde...
null
streadway__amqp__101
streadway/amqp
101
defect
80b5582a0c488a955a0b989f92d2b449b098a308
78884640b8da21d00abbb5c37bfd3eec2f4b3543
Expose the local TCP address
This patch gives the client app a handle on the local TCP address so that the app can correlate the driver connection object with Rabbit's view of the connection. This is useful when the an app wishes to use multiple AMQP connections within the OS process and wants to correlate them with Rabbit management.
diff --git a/connection.go b/connection.go index 1f4c72ec..31ada4ae 100644 --- a/connection.go +++ b/connection.go @@ -211,6 +211,19 @@ func Open(conn io.ReadWriteCloser, config Config) (*Connection, error) { return me, me.open(config) } +/* +LocalAddr returns the local TCP peer address, or ":0" (the zero value of...
6
5
3
[{"id": "G0", "claim": "When opening with amqp.Open over a bare io.ReadWriteCloser, Connection.LocalAddr is nil, forcing every caller to guard against nil; it should be exposed as a LocalAddr() net.Addr method that falls back to a constant value when the transport does not implement it.", "category": "design", "verdict...
null
streadway__amqp__185
streadway/amqp
185
defect
1aedb1f9e106db5d7403222313a0504a06def5b3
975ef833182938da87206d0fae22e9d1e63e65c0
Expose tls.ConnectionState for TLS connections
I wanted to check the TLS version and cipher suite negotiated by Go and RabbitMQ.
diff --git a/connection.go b/connection.go index ad400797..d9e89d04 100644 --- a/connection.go +++ b/connection.go @@ -103,6 +103,10 @@ type localNetAddr interface { LocalAddr() net.Addr } +type tlsConnectionState interface { + ConnectionState() tls.ConnectionState +} + // defaultDial establishes a connection whe...
2
2
0
[{"id": "G0", "claim": "The new test's error message should warn the user that a TLS handshake failure occurred, changed to \"TLS handshake failed, TLS connection state: …\".", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new method should be rename...
null
streadway__amqp__233
streadway/amqp
233
defect
3d520d05b74cc137bfac4ee6cd40d52cda7810ee
fd7374d42435eda780219c5b60bf65d8554c4aac
Fix error chan close on channel shutdown.
If errors chan remains open after rabbimq channel shutdown, it could result in deadlock when other goroutine is trying to Close channel again.
diff --git a/channel.go b/channel.go index 2bf43516..f3089ac4 100644 --- a/channel.go +++ b/channel.go @@ -131,6 +131,7 @@ func (ch *Channel) shutdown(e *Error) { ch.confirms.Close() } + close(ch.errors) ch.noNotify = true }) } @@ -148,8 +149,11 @@ func (ch *Channel) call(req message, res ...message) er...
1
1
1
[{"id": "G0", "claim": "The pull request's change to channel shutdown and error handling needs tests, and the reviewer asks that a test exercising a channel-level exception (e.g. publishing to a non-existent exchange or re-declaring a queue with mismatching arguments) be added.", "category": "testing", "verdict": "supp...
null
streadway__amqp__34
streadway/amqp
34
defect
c1bdf27c1a04d354fb47ea797b6173c275db6f93
908c54023954998b7a1bc425e298566565d097b5
Implement TLS
This issue is for adding a sane default when we encounter an 'amqps://' scheme. When client certificate validation plus the EXTERNAL SASL mechanism are required, then it is up to the client to string together a meaningful connection handshake. The default behavior will likely be to require server certificate chain va...
diff --git a/connection.go b/connection.go index f736d9b5..0ef85693 100644 --- a/connection.go +++ b/connection.go @@ -7,6 +7,7 @@ package amqp import ( "bufio" + "crypto/tls" "io" "net" "reflect" @@ -67,18 +68,33 @@ type readDeadliner interface { SetReadDeadline(time.Time) error } -// Dial accepts a st...
3
3
0
[{"id": "G0", "claim": "Peterbourgon asks why the new amqps block's copy-of-tls.Config logic is important, i.e. the rationale for copying instead of mutating the caller's config is not evident.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new doc.g...
null
streadway__amqp__345
streadway/amqp
345
defect
70e15c650864f4fc47f5d3c82ea117285480895d
fe2641c30ea8f817bb96ce75fa6f065299437985
Add go v1.11 to supported versions, soft drop go v1.9 (n-1 + tip project policy)
Also, update README to reflect go version tested in travis.
diff --git a/.travis.yml b/.travis.yml index 7166964c..39249505 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: go go: - - 1.9.x - 1.10.x + - 1.11.x services: - rabbitmq diff --git a/README.md b/README.md index 099db276..287830b2 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 ...
2
2
0
[{"id": "G0", "claim": "The informational 'Detected latest version of go... checking gofmt, golint and got vet' line in pre-commit should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The if-statements in pre-commit should be writte...
null
streadway__amqp__98
streadway/amqp
98
defect
e01e41ed87458c38b4a8e1e6119407df78c735c3
9ba3fa2c1ebc61c3652d53c33574407ad1824db5
Parameterizable client properties
This patch allows a client to specify the product name and version to the server. Most client applications will not need or want to do this, so if these fields are not populated, the driver uses the current default values.
diff --git a/connection.go b/connection.go index 8d309a46..5d9ea1cb 100644 --- a/connection.go +++ b/connection.go @@ -19,6 +19,8 @@ import ( const defaultHeartbeat = 10 * time.Second const defaultConnectionTimeout = 30 * time.Second +const defaultProduct = "https://github.com/streadway/amqp" +const defaultVersion ...
6
6
3
[{"id": "G0", "claim": "The new config fields should be named Product and Version rather than ClientProduct and ClientVersion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comments on the new config fields should follow the Go comment-...
null
streamich__react-use__1203
streamich/react-use
1,203
defect
b3d14e2c71852e95ba6b40414caf5bf5131fef2e
d6fe2676153f19302ce170b03ceadc3bab5a945a
feat: add useLatest hook
# Description <!-- Please include a summary of the change along with relevant motivation and context. --> When working with React I regularly hit [the "stale closure" caveat of Hooks](https://reactjs.org/docs/hooks-faq.html#why-am-i-seeing-stale-props-or-state-inside-my-function) while trying to get the latest valu...
diff --git a/README.md b/README.md index 3f9d12500d..f8cf85f90d 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ - [`useDefault`](./docs/useDefault.md) &mdash; returns the default value when state is `null` or `undefined`. - [`useGetSet`](./docs/useGetSet.md) &mdash; returns state getter `get()` instead...
2
1
0
[{"id": "G0", "claim": "The ref update should be moved out of the useEffect and done directly at render, since it should still work and be more performant, with new values applied instantly instead of when scheduled by useEffect.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
streamich__react-use__1700
streamich/react-use
1,700
defect
955a6d44b04f115e82b31a3c3131224570607a5b
55fbf2ffd10f5cf430f4b4df85f242917c46944f
fix for useWindowScroll may lose window scroll change at mount #1699
# Description useWindowScroll may lose window scroll change at mount (see bug #1699) We have to update window scroll at mount, before subscription. Window scroll may be changed between render and effect handler. Also, we can use lazy initial value for state (to prevent scroll position recalculation at each rend...
diff --git a/src/useWindowScroll.ts b/src/useWindowScroll.ts index 82d6be1557e..7919e0ebf4a 100644 --- a/src/useWindowScroll.ts +++ b/src/useWindowScroll.ts @@ -1,6 +1,6 @@ import { useEffect } from 'react'; -import { isClient } from './util'; +import { isClient } from './util'; import useRafState from './useRafSta...
3
3
2
[{"id": "G0", "claim": "The mount-time test's three assertions should be replaced with a single expect(hook.result.current).toEqual({ x: 1, y: 2 }) comparison.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mount-time handler() call added to fix los...
null
streamich__react-use__321
streamich/react-use
321
defect
5d3e9e5c9fdc33f268c1ca46b985abc89a2c60fc
30209518d5e69a9b4ad4d8712700c491ef7c3c06
add tests, and fix the initial state issue
resolves #314 Also, improved type inference: ![image](https://user-images.githubusercontent.com/199018/58584637-b80ffd80-8224-11e9-9e26-64316a7a2d2b.png)
diff --git a/babel.config.js b/babel.config.js index 4bea0c598b..676164202b 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,14 @@ module.exports = { - presets: ['@babel/preset-env', '@babel/preset-react', "@babel/preset-typescript"], -}; \ No newline at end of file + presets: [ + [ + "@babel/...
3
3
1
[{"id": "G0", "claim": "The `Fn` type parameter is redundant in useAsyncFn and useAsync and should be removed, e.g. typing the argument directly as `fn: (...args: Args | []) => Promise<Result>`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the callb...
null
streamich__react-use__551
streamich/react-use
551
defect
2e308db9b615a35c39e2c4b479f244f289c1502c
684e34b56d79e0959dd14e37ad9ef66b79ab3f7c
feat: add usePreviousDistinct
Fixes #476
diff --git a/docs/usePreviousDistinct.md b/docs/usePreviousDistinct.md new file mode 100644 index 00000000000..af32bcb5d72 --- /dev/null +++ b/docs/usePreviousDistinct.md @@ -0,0 +1,48 @@ +# `usePreviousDistinct` + +Just like `usePrevious` but it will only update once the value actually changes. This is important when ...
2
2
1
[{"id": "G0", "claim": "The pull request needs an example file for storybook so the hook's docs are picked up in storybook.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test file should be updated to the scoped @testing-library/react-hooks p...
null
streamich__react-use__568
streamich/react-use
568
defect
943acb25e8d75171945ab2df6c11d9daf7cabbe4
438a56606bb90d140425bd9f55e2b8c453f20151
fix: make useTimeoutFn work properly:
- reset function should clear previous timeout; - function change should not reset the timeout;
diff --git a/docs/useTimeoutFn.md b/docs/useTimeoutFn.md index 52d259be9f..48e4bc2d99 100644 --- a/docs/useTimeoutFn.md +++ b/docs/useTimeoutFn.md @@ -1,10 +1,13 @@ # `useTimeoutFn` -Calls given function after specified amount of milliseconds. -**Note:** this hook does not re-render component by itself. +Calls giv...
1
1
1
[{"id": "G0", "claim": "The new 'should NOT reset timeout on function change' test re-renders with the wrong delay (5 instead of 50), so the timer has already elapsed by the rerender and the test does not actually demonstrate that a function change alone leaves the timeout unreset.", "category": "testing", "verdict": "...
null
streamich__react-use__776
streamich/react-use
776
defect
18e7af04c92848ec7196d04d6070af3e2a41d32f
4cae2fa4ebf821a7542102e8b703b6cef3b32ca6
Modify useTitle.ts' logic
Restore the previous title when the current component is destroyed.
diff --git a/src/useTitle.ts b/src/useTitle.ts index 6d3af7e254..718b65df65 100644 --- a/src/useTitle.ts +++ b/src/useTitle.ts @@ -1,11 +1,14 @@ import { useRef } from 'react'; function useTitle(title: string) { - const t = useRef<string>(); - - if (t.current !== title) { - document.title = t.current = title; ...
1
1
1
[{"id": "G0", "claim": "Restoring the previous document title on unmount must be made optional (e.g. via an options object with restoreOnUnmount defaulting to false) so that the PR's unconditional restore does not change existing behaviour / break users of useTitle.", "category": "design", "verdict": "supported", "prio...
null
streamich__react-use__825
streamich/react-use
825
defect
dbee45cc4c8b572429b4bef745b21a748d325fcb
775a4c997a73eddf5520f5c6f77d550f1df47fd9
feat: useScrollbarWidth hook;
# Description This hook uses [@xobotyi/scrollbar-width](https://github.com/xobotyi/scrollbar-width) underneath, which is well tested and grown from my scrollbars component. This PR absorbs #653 ## Type of change <!-- Check all relevant options. --> - [ ] Bug fix _(non-breaking change which fixes an issue)...
diff --git a/README.md b/README.md index 12be4371ba..6b65d8a35b 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ - [`useWindowSize`](./docs/useWindowSize.md) &mdash; tracks `Window` dimensions. [![][img-demo]](https://codesandbox.io/s/m7ln22668) - [`useMeasure`](./docs/useMeasure.md) &mdash; tracks an HTM...
2
1
0
[{"id": "G0", "claim": "streamich questions when the hook's undefined return is reachable, asking what case would have React render while the DOM is not yet ready.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The @xobotyi/scrollbar-width line added to ...
null
streamich__react-use__850
streamich/react-use
850
defect
fe6d49a9a61106df5629c1acf979c40a3808d19d
c85b85a299e1bf36b8f442db2b1154a9a9bce1de
feat: add global state hook
# Description <!-- Please include a summary of the change along with relevant motivation and context. --> ## Type of change <!-- Check all relevant options. --> - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [x] New feature _(non-breaking change which adds functionality)_ - [ ] **Breaking ch...
diff --git a/docs/useGlobalState.md b/docs/useGlobalState.md new file mode 100644 index 0000000000..1c6a318b7f --- /dev/null +++ b/docs/useGlobalState.md @@ -0,0 +1,53 @@ +# `useGlobalState` + +A React hook witch create a globally shared state. + +## Usage + +```jsx +import { useGlobalState } from "react-use"; + +const...
2
2
1
[{"id": "G0", "claim": "The IfStatement registering stateSetter runs on every re-render and should instead be placed inside a useLayoutEffect.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs sentence should read \"A React hook which creates ...
null
streamich__react-use__878
streamich/react-use
878
defect
5dab2c542fc09519b61d3acaa2b13880cdc2e29f
c3c9061dbc23b82ac4d2d500757862112456481b
Add useCookie hook
# Description Issue #594 ## Type of change <!-- Check all relevant options. --> - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [x] New feature _(non-breaking change which adds functionality)_ - [ ] **Breaking change** _(fix or feature that would cause existing functionality to not work as b...
diff --git a/docs/useCookie.md b/docs/useCookie.md new file mode 100644 index 0000000000..24e786ca4c --- /dev/null +++ b/docs/useCookie.md @@ -0,0 +1,39 @@ +# `useCookie` + +React hook that returns the current value of a `cookie`, a callback to update the `cookie` +and a callback to delete the `cookie.` + +## Usage + +...
4
1
0
[{"id": "G0", "claim": "The hook should listen for cookie changes and re-render, though the author notes no event is emitted for cookie changes (the one that exists is only for extensions).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request ...
null
streamich__react-use__896
streamich/react-use
896
defect
2b1bd559d5637da00c06962d6bc69e9f07e3335d
5316510babf7606a2f4b78de2b0eb85c930890cf
feat: add serializer/deserializer option to useLocalStorage
# Description <!-- Please include a summary of the change along with relevant motivation and context. --> 1. #834 2. Add tests for `useLocalStorage` hook ## Type of change <!-- Check all relevant options. --> - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [x] New feature _(non-breaking cha...
diff --git a/docs/useLocalStorage.md b/docs/useLocalStorage.md index a414fdad56..00574bf1d9 100644 --- a/docs/useLocalStorage.md +++ b/docs/useLocalStorage.md @@ -2,11 +2,10 @@ React side-effect hook that manages a single `localStorage` key. - ## Usage ```jsx -import {useLocalStorage} from 'react-use'; +import...
1
1
1
[{"id": "G0", "claim": "The newly added `if (localStorageValue)` guard treats an empty string as an absent value, so e.g. useLocalStorage('foo', '', {raw: true}) would return the initial value instead of the stored empty string; the check should be `localStorageValue !== null` since localStorage.getItem() returns strin...
null
streamich__react-use__908
streamich/react-use
908
defect
fc595e8618ed925cc6dbabeab7d1c77961098624
7645f7249dbf52db140dfc8b7866cb4a171e439c
feat: `useMap`: allow resetting with provided value other then initial
# Description `useMap`: Add `setAll` to allow providing entirely new object ## Type of change <!-- Check all relevant options. --> - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [x] New feature _(non-breaking change which adds functionality)_ - [ ] **Breaking change** _(fix or feature that w...
diff --git a/docs/useMap.md b/docs/useMap.md index cf3273afe3..7210076a1e 100644 --- a/docs/useMap.md +++ b/docs/useMap.md @@ -18,7 +18,10 @@ const Demo = () => { Add </button> <button onClick={() => reset()}> - Reset + Reset to initial + </button> + <button onClick={() =>...
2
1
1
[{"id": "G0", "claim": "Overloading `reset` with an optional new-map argument is risky — a caller using it directly as an event handler (e.g. `onClick={reset}`) would have the event passed as the new map — so a separate method should be added instead.", "category": "design", "verdict": "supported", "priority": "P1", "s...
null
streamich__react-use__968
streamich/react-use
968
defect
d5fa801b973d329f1fad46ee093a46c36dfc8bc9
c415703b171d0e680cacb9a39deb763783db4e10
feat(useSet): add toggle a method
# Description This adds a `toggle` method to the `useSet` hook. It creates a handy wrapper on top of `add` and `remove`. ## Type of change <!-- Check all relevant options. --> - [ ] Bug fix _(non-breaking change which fixes an issue)_ - [x] New feature _(non-breaking change which adds functionality)_ - [ ...
diff --git a/docs/useSet.md b/docs/useSet.md index 8b6f620ac8..97047001ee 100644 --- a/docs/useSet.md +++ b/docs/useSet.md @@ -8,7 +8,7 @@ React state hook that tracks a [Set](https://developer.mozilla.org/en-US/docs/We import {useSet} from 'react-use'; const Demo = () => { - const [set, { add, has, remove, reset ...
3
3
2
[{"id": "G0", "claim": "The story button label derived from `has('hello')` is unclear in the UI; the button should be labelled `Toggle 'hello'` instead, with `has` demonstrated another way (e.g. an input field).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
streamingfast__firehose-ethereum__120
streamingfast/firehose-ethereum
120
defect
ed1f401ec2446add9bfabb7ac866f1c3574c608a
53ab68576490021d5c88d2dcb053c6fb36fd2d76
Implement fallback to 'latest' block
Implement fallback to 'latest' block on invalid params RPC error (-32602) with tests
diff --git a/substreams/rpccalls.go b/substreams/rpccalls.go index 0b899544..0025b5db 100644 --- a/substreams/rpccalls.go +++ b/substreams/rpccalls.go @@ -3,8 +3,10 @@ package substreams import ( "context" "encoding/hex" + "errors" "fmt" "net/http" + "os" "regexp" "strconv" "strings" @@ -17,6 +19,7 @@ im...
2
2
0
[{"id": "G0", "claim": "Rename the LATEST_FALL_BACK_DURATION environment variable to something like ETH_CALLS_FALLBACK_TO_LATEST_DURATION so one can at least guess what it relates to.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comments a...
null
streamingfast__firehose-ethereum__131
streamingfast/firehose-ethereum
131
defect
91fa12af7a63a3fe4f2a5d5e8223b509fbc783fe
b384ef71897db749c7670567b79bcb58471aad65
feature: use eth_getBlockReceipts instead of fetching receipts individually
- Use eth_getBlockReceipts to fetch all transaction receipts in a single RPC call instead of one call per transaction - Automatically falls back to individual eth_getTransactionReceipt calls if the node doesn't support the batch method - ~~Requires eth-go [PR](https://github.com/streamingfast/eth-go/pull/7)~~ - Me...
diff --git a/blockfetcher/rpc.go b/blockfetcher/rpc.go index 656e8c30..20de6951 100644 --- a/blockfetcher/rpc.go +++ b/blockfetcher/rpc.go @@ -149,6 +149,44 @@ func FetchLogs(ctx context.Context, blockHash eth.Bytes, client *rpc.Client) (ou } func FetchReceipts(ctx context.Context, block *rpc.Block, client *rpc.Cli...
4
3
1
[{"id": "G0", "claim": "FetchReceipts should fall back to individual fetching only when the error is a method-not-found error, returning any other error directly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Optionally cache that a client does not...
null
streamingfast__firehose-ethereum__137
streamingfast/firehose-ethereum
137
defect
21195c1bf9b7cecebde642b4263cf3ea3d1629c8
2d2951bfbd7f3a34cb2d2f01e24ffa919319d1bf
Add `fireeth tools remove-gas-changes` to rewrite merged blocks and re-align ordinals
This adds a `fireeth tools` command to transform existing Ethereum merged block files by removing `gas_changes` from `pbeth.Block` call data. The goal is to support offline block rewrites where gas change events must be stripped while preserving block consistency. - **New tool command** - Added `remove-gas-changes <...
diff --git a/cmd/fireeth/main.go b/cmd/fireeth/main.go index 51455834..54c159b1 100644 --- a/cmd/fireeth/main.go +++ b/cmd/fireeth/main.go @@ -134,6 +134,7 @@ func Chain() *firecore.Chain[*pbeth.Block] { parent.AddCommand(newFixOrdinalsCmd(zlog)) parent.AddCommand(newFixAnyTypeCmd(zlog)) parent.AddComman...
1
1
1
[{"id": "G0", "claim": "The command must handle re-ordering (re-alignment) of ordinals after gas-change removal, since block begin/end, tx begin/end, call begin/end and call/block-scoped change ordinals must all stay well aligned; tests covering this are needed.", "category": "correctness", "verdict": "supported", "pri...
null
streamingfast__firehose-ethereum__19
streamingfast/firehose-ethereum
19
defect
5b8c23a3bb0c773c06a381e5b19c72f7c8167d89
3338f5ebd30b3ba7c332e475c257b6df4acf22c3
Handle LogAddressIndex queries via an IndexProvider
Resolves #18
diff --git a/transform/log_address_index.go b/transform/log_address_index.go index 82892eb1..20ec7650 100644 --- a/transform/log_address_index.go +++ b/transform/log_address_index.go @@ -1,25 +1,17 @@ package transform import ( - "bytes" - "context" "fmt" "github.com/RoaringBitmap/roaring/roaring64" "github...
15
9
2
[{"id": "G0", "claim": "Delete the commented-out IndexProvider interface block whose comments describe an interface that has been changed and is not current.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 2-second indexOpsTimeout is too short ...
null
streamingfast__firehose-ethereum__35
streamingfast/firehose-ethereum
35
defect
7192c1fbfe04aadfef7d87df32ba7a8f55c27e4c
a5170c7b003ea7e72cad0337a0586f4e4f68233e
Add `send_all_block_headers` feature to CombinedFilter
* Add `send_all_block_headers` field to CombinedFilter (protobuf definition) This allows fetching a thin version of every block (without their transactionTraces, pretty much only the header) When the CombinedFilter also has logFilter or callFilter, if they match, their transactionTrace will still be there, as expe...
diff --git a/go.mod b/go.mod index a1a0fc0e..7aac19a2 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/manifoldco/promptui v0.8.0 github.com/spf13/cobra v1.4.0 github.com/spf13/viper v1.10.1 - github.com/streamingfast/bstream v0.0.2-0.20220909121429-4647fd1522c9 + github.com/streamingfast/b...
1
1
0
[{"id": "G0", "claim": "Put the doc comment on top of the send_all_block_headers field so it is properly attached to the generated code in all languages, and add a bigger explanation of the feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
streamingfast__firehose-ethereum__37
streamingfast/firehose-ethereum
37
defect
bdeb8dafed8dc7f6b08e403d7a44511fad586213
9279a7a929778dda53298274599dacef75f8a346
fixed DELEGATECALL caller bug
* Fixed the Caller on delegateCall to align with what the traces API gives * Bumped sf.ethereum.type.v2.Block field `Ver` from 2 to 3 * This requires upgrading the blocks from Ver.2 to Ver.3 using `tools upgrade-merged-blocks` * This requires reprocessing the combined indexes from those new blocks Ver.3 * While the...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b0400349..47f0b61a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,18 @@ for instructions to keep up to date. * Added sf.firehose.v2.Fetch/Block endpoint on firehose, allows fetching single block by num, num+ID or cursor * Added `tools firehose-single-block-cli...
4
3
0
[{"id": "G0", "claim": "The new CHANGELOG 'Fixed DELEGATECALL caller bug' section should be rewritten along the lines of the reviewer's suggestion block, with a '### Fixed' entry for DELEGATECALL's caller and a structured 'Upgrade Procedure' listing the block upgrade, index re-creation and Geth binary upgrade steps.", ...
null
streamingfast__firehose-ethereum__54
streamingfast/firehose-ethereum
54
defect
9262ae5effa8d2eb8e53bd4a87e84392082c2909
84fcba389960c9272b338169b0241631578a61de
Polygon statesync trx normalize
fix polygon handling of 'bor state sync' transactions bor now exposes these 'system' transactions as a "flattened, single transaction" with a deterministic hash based on blocknum + blockhash, so we should do the same. * bump sf-tools * bump eth /types to support new "variant" parameter in NormalizeBlockInPlace ...
diff --git a/codec/console_reader.go b/codec/console_reader.go index 011e6142..2a6bd24b 100644 --- a/codec/console_reader.go +++ b/codec/console_reader.go @@ -158,6 +158,7 @@ func (s *parsingStats) inc(key string) { } type parseCtx struct { + currentVariant pbeth.Variant currentBlock *pbeth.Block ...
2
2
0
[{"id": "G0", "claim": "CombinePolygonSystemTransactions should be wrapped in a check for the presence of Polygon system transactions so it does not run on every Polygon block.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The normalTransactions sl...
null
streamlink__streamlink__6455
streamlink/streamlink
6,455
defect
b8247ffb1a26289039d8e5c00e4d55c061d0c373
c9efd096e17d7005e04852189f84612ccd83e7d1
cli: allow --retry-streams to be set to 0
- Don't retry fetching streams if `--retry-streams` and `--retry-max` are both set to zero. This was previously only possible if both were unset. - Update CLI argument help texts accordingly - Fix `FatalPluginError` not being handled properly on first try - Add tests for `fetch_streams_with_retry()` ---- Resol...
diff --git a/src/streamlink_cli/argparser.py b/src/streamlink_cli/argparser.py index a0cacd2e619c..e39e14a2eb5a 100644 --- a/src/streamlink_cli/argparser.py +++ b/src/streamlink_cli/argparser.py @@ -816,13 +816,16 @@ def build_parser(): stream.add_argument( "--retry-streams", metavar="DELAY", - ...
1
1
0
[{"id": "G0", "claim": "The --retry-max help text should say `COUNT` retry attempt(s) instead of `COUNT` attempt(s) so the documentation is easier to understand.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
streamlink__streamlink__6876
streamlink/streamlink
6,876
defect
512e58ad7ec5cec88eb84930d619a23f9e4ac61f
44e37e5932cbbd4f36cba66f0ef10fb3c8e89c9d
plugins.soop: migrate to sooplive.com
## Summary SOOP (formerly AfreecaTV) is migrating from `sooplive.co.kr` to `sooplive.com`. As of recently, https://www.sooplive.co.kr/ redirects to https://www.sooplive.com/, and `play.sooplive.co.kr` redirects to `play-origin.sooplive.com` in the browser. This change proactively adds `play.sooplive.com` as a support...
diff --git a/src/streamlink/plugins/soop.py b/src/streamlink/plugins/soop.py index 801983dfc17..1205bb75e99 100644 --- a/src/streamlink/plugins/soop.py +++ b/src/streamlink/plugins/soop.py @@ -1,5 +1,6 @@ """ $description TV and live video game broadcasts, artist performances and personal daily-life video blogs & sho...
1
1
1
[{"id": "G0", "claim": "The PR should also migrate the API URLs (channel API, auth check, login, Origin header, cookie domain) from sooplive.co.kr to sooplive.com, not just the play.* URL matching and help text.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
streamlink__streamlink__6896
streamlink/streamlink
6,896
defect
a309e6e9cf621655779c7283dff51686f5d2a22b
44c451f53a881448368ad3bd0ad82453350fa1c9
Session Option: 'stream-passthrough-encrypted'
- [x] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [x] [I have read the rules about AI-assisted contributions](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#ai-assisted-contributions) ---- Intro...
diff --git a/src/streamlink/session/options.py b/src/streamlink/session/options.py index 24686072684c..16278a8abeb7 100644 --- a/src/streamlink/session/options.py +++ b/src/streamlink/session/options.py @@ -209,10 +209,18 @@ class StreamlinkOptions(Options): - ``[]`` - Select a specific audio sour...
3
3
2
[{"id": "G0", "claim": "The PR must expose exactly one appropriately named session option with a respective CLI argument (not two stream-specific 'no-check-formats' options whose name suggests playback capabilities) and log a warning that the stream content is encrypted and won't be decrypted.", "category": "design", "...
null
streamlit__streamlit__10563
streamlit/streamlit
10,563
defect
fc12ed90e58d0b23dc2f22c8da77e2613c4feaa2
c8d3f545426498b7727a4db4553478e0cae59d08
Add locale to the st.context
## Describe your changes Add primarly locale of the user browser ## GitHub Issue Link (if applicable) ## Testing Plan - Explanation of why no additional tests are needed - Unit Tests (JS and/or Python) DONE - E2E Tests DONE - Any manual testing needed? --- **Contribution License Agreement** By s...
diff --git a/e2e_playwright/st_context.py b/e2e_playwright/st_context.py index 720547ebc93..d4d61674c04 100644 --- a/e2e_playwright/st_context.py +++ b/e2e_playwright/st_context.py @@ -18,3 +18,5 @@ st.write(f"Timezone name: {st.context.timezone}") st.write(f"Timezone offset: {st.context.timezone_offset}") + +st.wr...
1
1
1
[{"id": "G0", "claim": "The gather_metrics label for the new locale property needs to be renamed from \"context.headers\" to \"context.locale\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
streamlit__streamlit__10972
streamlit/streamlit
10,972
defect
16e5b1909e4d4f983e3d560ce6f637940cc82df5
c0eda4f4c04a7d58c99e6fc8f619569462a0723d
Add theme field to context, it would contain only `type` field for now "light" or "dark"
## Describe your changes Add theme field to context, it would contain only `type` field for now, "light" or "dark". ## GitHub Issue Link (if applicable) Closes #5009 ## Testing Plan - Explanation of why no additional tests are needed - Unit Tests (JS and/or Python) - E2E Tests - Any manual testing ne...
diff --git a/e2e_playwright/st_context.py b/e2e_playwright/st_context.py index 022515296ac..3319e597cf2 100644 --- a/e2e_playwright/st_context.py +++ b/e2e_playwright/st_context.py @@ -23,6 +23,9 @@ st.write(f"Full url: {st.context.url}") +if st.context.theme is not None: # need for bare python test doesn't fail ...
14
8
2
[{"id": "G0", "claim": "Importing AttributeDictionary from the internal elements.lib path couples this module to internal APIs; consider moving or re-exporting a public theme utility to avoid tight coupling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
streamlit__streamlit__11395
streamlit/streamlit
11,395
defect
0fbbf772f51659ec2bb98b07e8acd8b4351de901
49f736360fb0e2a21e9b73a3f88ac259b91162f6
Add config option to disable email prompt
## Describe your changes This creates a new configuration option, server.prompt, which controls if the "Welcome to Streamlit!" prompt is shown (and email is asked for and ~/.streamlit folder is created). This is distinct from server.headless because the server is not run in headless mode (eg: the browser opens au...
diff --git a/lib/streamlit/config.py b/lib/streamlit/config.py index c0c5bba8d57..ab6b9df3b6f 100644 --- a/lib/streamlit/config.py +++ b/lib/streamlit/config.py @@ -736,6 +736,17 @@ def _server_headless() -> bool: return False +_create_option( + "server.prompt", + description=""" + Prompt the user...
12
6
1
[{"id": "G0", "claim": "The f-string in test_prompt_welcome_message's failure message is missing a space between {headless_mode} and \"yet output is\", which produces a malformed message; add the space or combine the strings.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
streamlit__streamlit__11469
streamlit/streamlit
11,469
defect
79fb20b152292d1e74ede96e0fd3c216ee1c641f
219a052d690eac2f3653990f41830d58c5752dc9
Add show_time parameter to st.cache_data parameter to caching functions and tests
## Describe your changes This pull request introduces a new `show_time` parameter across multiple caching APIs in Streamlit. The `show_time` parameter allows users to display elapsed time alongside spinner text, enhancing transparency during caching operations. Changes span implementation, legacy APIs, and associated ...
diff --git a/lib/streamlit/runtime/caching/cache_data_api.py b/lib/streamlit/runtime/caching/cache_data_api.py index d0a3135a6a1..7ab63ab342d 100644 --- a/lib/streamlit/runtime/caching/cache_data_api.py +++ b/lib/streamlit/runtime/caching/cache_data_api.py @@ -95,11 +95,13 @@ def __init__( max_entries: int | N...
8
7
1
[{"id": "G0", "claim": "The public st.cache_data docstring does not document the new show_time parameter; update it so the flag appears in user-facing help and generated documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The st.cache_re...
null
streamlit__streamlit__11796
streamlit/streamlit
11,796
defect
94d2166302eed351fb846b3c7433d4d3522897d3
e8a8e58fd8972c450c03b8930cdbfcdcf0a6a366
Add `border` parameter to `st.table`
## Describe your changes Adds a `border` parameter to `st.table`, which allows creating different table styles: ![Screenshot 2025-06-27 at 16 27 53](https://github.com/user-attachments/assets/cab6faf5-e15a-4edf-9546-87180e2ad80e) Demo app to show it in combination with other `st.table` features: ![Screensho...
diff --git a/e2e_playwright/st_table.py b/e2e_playwright/st_table.py index 4cfdda65a8e..293b72ebd7b 100644 --- a/e2e_playwright/st_table.py +++ b/e2e_playwright/st_table.py @@ -246,6 +246,8 @@ def make_pretty(styler: Styler) -> Styler: st.table(styled_df) +st.header("Border Parameter") +st.table(pd.DataFrame({"A":...
9
5
1
[{"id": "G0", "claim": "The new border=false test assigns a `props` variable from getProps(UNICODE) that is never used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reusing the shared Arrow proto message for dataframe, data editor, table, char...
null
streamlit__streamlit__11861
streamlit/streamlit
11,861
defect
828f40e6c35bbbd7f7ed9f07724d3b0825096726
d2ea4e5fc2cc4a82d5c9ca2c2147f1a98e674ee1
[fix] No more sidebar flickering when initial_sidebar_state="collapsed"
## Describe your changes This change fixes the bug linked below and adds a bunch of testing to ensure this doesn't happen again without us catching it. Additionally, it was discovered that there were some tests that were locking in this buggy behavior, so those have been updated as well. <!-- If it's a visual cha...
diff --git a/e2e_playwright/hello_app_test.py b/e2e_playwright/hello_app_test.py index 61e6ee4fa60..25ab48a90a1 100644 --- a/e2e_playwright/hello_app_test.py +++ b/e2e_playwright/hello_app_test.py @@ -170,6 +170,10 @@ def test_app_print_mode_portrait_with_sidebar_closed( """ app = themed_app + # Note: th...
3
1
0
[{"id": "G0", "claim": "The comment 'Handle updates to initialSidebarState after set_page_config' is orphaned after the refactor and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Initializing isSidebarCollapsed to hardcoded t...
null
streamlit__streamlit__12202
streamlit/streamlit
12,202
defect
e62c6355771de6e749857697ecc10aed1dc9aeff
0e39ad1d24570810322ab5a7a0680dd595a0b8e4
Update credentials.py: try to fix showEmailPrompt in case where there is no email
## Describe your changes Fixes #12166 “If showEmailPrompt is false, but there is no email configured, "Activation email not valid" error results” ## GitHub Issue Link (if applicable) https://github.com/streamlit/streamlit/issues/12166 ## Testing Plan This should be testable, and in fact the tests that we...
diff --git a/lib/streamlit/runtime/credentials.py b/lib/streamlit/runtime/credentials.py index c835e85a1cd..c1c5fca9002 100644 --- a/lib/streamlit/runtime/credentials.py +++ b/lib/streamlit/runtime/credentials.py @@ -247,8 +247,6 @@ def activate(self, show_instructions: bool = True) -> None: "`stre...
2
1
1
[{"id": "G0", "claim": "The function-level import of `config` was removed but `config` is still used in the conditional check, which will cause a NameError when `config.get_option()` is called.", "category": "correctness", "verdict": "opposed", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The logic ...
null
streamlit__streamlit__12448
streamlit/streamlit
12,448
defect
3c5a885370b5e9bd8e9ada979670cd0a627c4bcd
f3ad1334edf99f37b7f76255abbc3425ca21585d
Feat: Automatically hide row indices in `st.dataframe` when row selection is active
## Describe your changes Implements the suggestion that range indices in `st.dataframe` should be hidden automatically when row selections are active and hide_index is not set or is not false. Allows users to enable the index column via `hide_index=False`. Image render link provided in the original issue: http...
diff --git a/lib/streamlit/elements/arrow.py b/lib/streamlit/elements/arrow.py index ddd9a36e44f..a16c4f53d4b 100644 --- a/lib/streamlit/elements/arrow.py +++ b/lib/streamlit/elements/arrow.py @@ -705,6 +705,10 @@ def dataframe( # Serialize the data to bytes: proto.data = dataframe_util.conver...
2
2
0
[{"id": "G0", "claim": "The automatic hiding logic should only apply when `hide_index` is not explicitly set by the user (the condition should include `hide_index is None`), since the code hides the index even when `hide_index=False` is explicitly passed and only the subsequent check overrides it.", "category": "correc...
null
streamlit__streamlit__12479
streamlit/streamlit
12,479
defect
6f5ef1eb863fb374ce42e7c2e588cc837f092cbd
e7220b44e2c87609da7f39960d9eae5005d4927b
[fix] Setting 0 for height/width on components.html and components.iframe .
## Describe your changes <!-- If it's a visual change, please include a screenshot or video! --> ## GitHub Issue Link (if applicable) Fixes https://github.com/streamlit/streamlit/issues/12454 ## Testing Plan - Unit Tests (JS and/or Python) ✅ - E2E Tests ✅ - Manually inspected ✅ - Other elements hav...
diff --git a/e2e_playwright/st_components_v1.py b/e2e_playwright/st_components_v1.py index b589b7af2ff..9a2dd40710f 100644 --- a/e2e_playwright/st_components_v1.py +++ b/e2e_playwright/st_components_v1.py @@ -58,6 +58,11 @@ components.html(long_html) components.iframe(data_url) +# Zero dimension tests +st.m...
1
1
0
[{"id": "G0", "claim": "Consider removing the to_have_attribute calls in test_components_zero_dimensions since they assert implementation details, whereas the to_have_css assertion is both more powerful and less brittle.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
streamlit__streamlit__12597
streamlit/streamlit
12,597
defect
a9f7019947072e7f0aff19dc81d3051e5de76fa2
306c12fdc6673f57f66b4fd5efe53562433788a4
Add `cursor` kwarg to st.write_stream
## Describe your changes Today, `st.write_stream(...)` appends a ` | ` cursor at the end of the stream as its being written. This is really nice, but I think we can do better: let's make the cursor customizable! This PR introduces the `cursor` kwarg, so when you call `st.write_stream(..., cursor="🦄")` the final ...
diff --git a/lib/streamlit/elements/write.py b/lib/streamlit/elements/write.py index 7559095fc21..1f228c30ec9 100644 --- a/lib/streamlit/elements/write.py +++ b/lib/streamlit/elements/write.py @@ -56,9 +56,6 @@ ) -_TEXT_CURSOR: Final = " ▏" - - class StreamingOutput(list[Any]): pass @@ -71,6 +68,8 @@ def w...
3
2
2
[{"id": "G0", "claim": "The docstring states the default cursor is \" | \" while the function signature's default is \" \\u258f\", so the docstring should be corrected to match the actual default.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "jriek...
null
streamlit__streamlit__12598
streamlit/streamlit
12,598
defect
a9f7019947072e7f0aff19dc81d3051e5de76fa2
879574957e3320d4057d5beeb67782d7785a91f8
Add `type` argument to `st.popover` to match `st.button`
## Describe your changes The `st.popover` command currently inserts a button in your app which shows a popover when clicked. However, unlike a regular `st.button`, that button cannot be styled as primary/secondary/tertiary. This PR fixes that. This adds `type="primary"|"secondary"|"tertiary"` to `st.popover`. ...
diff --git a/e2e_playwright/st_popover.py b/e2e_playwright/st_popover.py index 173bda446ab..0db492508dd 100644 --- a/e2e_playwright/st_popover.py +++ b/e2e_playwright/st_popover.py @@ -77,3 +77,9 @@ with st.expander("Output"): st.markdown(text) + +with st.popover("popover 18 (primary)", type="primary"): + st...
2
1
1
[{"id": "G0", "claim": "The variable `kind` should be declared with an explicit type annotation as `let kind: BaseButtonKind = BaseButtonKind.SECONDARY`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The StreamlitAPIException message in `popover`...
null
streamlit__streamlit__12599
streamlit/streamlit
12,599
defect
a9f7019947072e7f0aff19dc81d3051e5de76fa2
c110a8e9b091cffa393d9c54122e041b2cafb311
Make `streamlit run` with no args mean `streamlit run streamlit_app.py`
## Describe your changes Tired of writing `streamlit run streamlit_app.py`? I have the solution! Save yourself 17 keystrokes by just writing `streamlit run`. If a filename is not included, the `streamlit_app.py` is now implied. ## GitHub Issue Link (if applicable) None ## Testing Plan - ~~Explanation of ...
diff --git a/lib/streamlit/web/cli.py b/lib/streamlit/web/cli.py index 2a930cf1fc1..ae3264efd5c 100644 --- a/lib/streamlit/web/cli.py +++ b/lib/streamlit/web/cli.py @@ -195,7 +195,7 @@ def main_hello(**kwargs: Any) -> None: @main.command("run") @configurator_options -@click.argument("target", required=True, envvar=...
3
3
1
[{"id": "G0", "claim": "The new test function test_run_no_file_argument_and_default_doesnt_exist lacks a docstring and should get one in numpydoc style.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_run_no_file_argument_but_default_exists is...
null
streamlit__streamlit__12630
streamlit/streamlit
12,630
defect
19d662400128fc59a06b703485f872974f980f9c
b54ba9ddc96b146c9cf57d2bde00f41bb2bcf3b0
[AdvancedLayouts] Add height to st.altair_chart
## Describe your changes Adds a new `height` parameter to `st.altair_chart` using the `Height` type system (`"stretch"`, `"content"`, or pixel values) for consistency with other chart elements. **Changes Made:** - **Added new parameter**: Added `height: Height = "content"` parameter to `st.altair_chart` - **A...
diff --git a/e2e_playwright/st_vega_charts_height.py b/e2e_playwright/st_vega_charts_height.py index 1d5f520eab6..bce57801632 100644 --- a/e2e_playwright/st_vega_charts_height.py +++ b/e2e_playwright/st_vega_charts_height.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # lim...
1
1
0
[{"id": "G0", "claim": "The test description says 'Altair chart with height=\\'stretch\\' (in 300px container)' but the implementation in st_vega_charts_height.py uses a 500px container, so the description should be updated to '500px container' to match.", "category": "documentation", "verdict": "supported", "priority"...
null
streamlit__streamlit__12693
streamlit/streamlit
12,693
defect
cefe7f6054b4a7965ad995b8110ad4b6041250be
ab071c244e312ae27367c7981a76fcc7aeac4817
Make st.logout use end_session_endpoint if provided in OIDC config (V2)
## Describe your changes Currently, st.logout ignores end_session_endpoint (ESE) in the OIDC configuration. This can cause issues, as some OIDC providers keep their own cookies and skip the login screen if they have an active session. This change: a) Writes the name of provider into the session cookie (so it ...
diff --git a/lib/streamlit/auth_util.py b/lib/streamlit/auth_util.py index e63155db7e4..25e0d101040 100644 --- a/lib/streamlit/auth_util.py +++ b/lib/streamlit/auth_util.py @@ -84,6 +84,26 @@ def get_secrets_auth_section() -> AttrDict: return auth_section +def get_expose_tokens_config() -> list[str]: + """G...
12
5
1
[{"id": "G0", "claim": "The docstring of get_expose_tokens_config() should be restructured to conform to the required Numpydoc style (Parameters/Returns sections) instead of a simple description format.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
streamlit__streamlit__12705
streamlit/streamlit
12,705
defect
04d9186533a38de841c5547dae7fa3a70a69b7ac
57a8372ca7eb50745436eb25aa2911e2ca7f8086
Use key as main identity for `st.radio` widget
## Describe your changes If a custom `key` is passed to the `st.radio` widget it will be used as the main identity. This allows for dynamically changing other parameters in between reruns without causing the widgets to be recreated in the frontend. ## GitHub Issue Link (if applicable) - Related to https://gith...
diff --git a/e2e_playwright/st_radio.py b/e2e_playwright/st_radio.py index 9b7e9ecd39f..ce40fc9bb56 100644 --- a/e2e_playwright/st_radio.py +++ b/e2e_playwright/st_radio.py @@ -126,3 +126,40 @@ def on_change(): ["Choice 1", "Choice 2", "Choice 3"], width=200, ) + +if st.toggle("Update radio props"): + dr_...
2
1
0
[{"id": "G0", "claim": "The comment '# Dynamic radio snapshots are tested in dedicated test' in e2e_playwright/st_radio_test.py is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test function test_stabl...
null
streamlit__streamlit__12720
streamlit/streamlit
12,720
defect
617bb49f26dd3a5ed91c6c4733f4ee1a3e7775d7
01058099bc8bca1151b2d207f01745ff7dffc1fa
Use `key` as main identity for `st.audio_input` widget
## Describe your changes If a custom `key` is passed to the `st.audio_input` widget it will be used as the main identity. This allows for dynamically changing other parameters in between reruns without causing the widgets to be recreated in the frontend. ## GitHub Issue Link (if applicable) - Related to https:...
diff --git a/e2e_playwright/st_audio_input.py b/e2e_playwright/st_audio_input.py index 207f82020d2..1e1d564cc8b 100644 --- a/e2e_playwright/st_audio_input.py +++ b/e2e_playwright/st_audio_input.py @@ -180,3 +180,32 @@ def render_sample_rate_audio_inputs() -> None: # Audio input with fixed pixel width st.audio_input...
2
2
0
[{"id": "G0", "claim": "The docstring of test_dynamic_audio_input_id_behavior claims the test verifies that changing sample_rate recreates the widget, but the test implementation does not actually verify widget recreation on sample_rate change.", "category": "documentation", "verdict": "supported", "priority": "P2", "s...
null
streamlit__streamlit__12897
streamlit/streamlit
12,897
defect
8c86dc73a3ef8a723442a743bdf650ee1ac22b78
aabff264a8a7ed0dfbed97443d88c917f31a9195
[feat] Add help argument and tooltip to st.badge
## Describe your changes This PR adds tooltip support for the `st.badge` component. Badges can now display help text when hovered over using the same `BaseButtonTooltip` as other Streamlit elements. ![hoverdemo-stbadge](https://github.com/user-attachments/assets/606ea5ec-0370-46fe-8d09-8e8340f3f02a) Key chang...
diff --git a/frontend/lib/src/components/elements/Markdown/Markdown.test.tsx b/frontend/lib/src/components/elements/Markdown/Markdown.test.tsx index a3da5969380..45320448443 100644 --- a/frontend/lib/src/components/elements/Markdown/Markdown.test.tsx +++ b/frontend/lib/src/components/elements/Markdown/Markdown.test.tsx...
9
8
2
[{"id": "G0", "claim": "The hover-target assertion pairs a throwing getByTestId with toBeInTheDocument, which the TypeScript Test Guide calls redundant; it should use toBeVisible instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tooltip assert...
null
streamlit__streamlit__12917
streamlit/streamlit
12,917
defect
08633fca9050b50d207315d378bf818be7365d7f
0ade7e7a7a5a396e39073b1349538ca71d31633d
[feat] Add Python API for st.html unsafe_allow_javascript
## Describe your changes Added a new `unsafe_allow_javascript` parameter to `st.html()` that allows JavaScript execution when set to `True`. By default, this parameter is `False`, maintaining the current behavior where JavaScript is ignored. Updated the docstring to clarify that JavaScript execution is now possible b...
diff --git a/lib/streamlit/elements/html.py b/lib/streamlit/elements/html.py index 54c85ea27a3..6d32d459de2 100644 --- a/lib/streamlit/elements/html.py +++ b/lib/streamlit/elements/html.py @@ -42,6 +42,7 @@ def html( body: str | Path | SupportsStr | SupportsReprHtml, *, # keyword-only arguments: ...
3
1
1
[{"id": "G0", "claim": "The docstring of html() lacks a Parameters entry for the new unsafe_allow_javascript parameter, contrary to Numpydoc conventions.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The style-only test seems very similar to test...
null
streamlit__streamlit__12950
streamlit/streamlit
12,950
defect
09fb67ff8943051ba09ef49a07439a62a967844f
d94db369cf6bf6d2cf43ede88d56b70e0b65b787
[fix] Ensure key is reflective of data arg in CCv2 instances
## Describe your changes - This fixes a few issues with how CCv2 handles the `data` arg, especially as it relates to creating a `key`. - Specifically, we weren't passing in the `data` arg to `compute_and_register_element_id` before this change. Now we do so, but in order to support the many different data shapes,...
diff --git a/lib/streamlit/components/v2/bidi_component/main.py b/lib/streamlit/components/v2/bidi_component/main.py index 54ce622dc34..39cf27d9c5e 100644 --- a/lib/streamlit/components/v2/bidi_component/main.py +++ b/lib/streamlit/components/v2/bidi_component/main.py @@ -55,6 +55,7 @@ ) from streamlit.proto.ArrowDat...
4
3
0
[{"id": "G0", "claim": "Computing MD5 on str(arrow_bytes) is inefficient; calc_md5 already accepts bytes directly, so pass arrow_bytes without converting to string first.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The _boom test helper's return ...
null
streamlit__streamlit__13027
streamlit/streamlit
13,027
defect
c33fb703d712eb36ebc7aca2adb1c10701f0396c
8e17efe7981d48d7d98b69910967a40d8fda97bd
Support passing query params to `st.switch_page`
## Describe your changes Adds support for passing query parameters to `st.switch_page` ## GitHub Issue Link (if applicable) - Closes https://github.com/streamlit/streamlit/issues/8102 - Related to https://github.com/streamlit/streamlit/issues/8112 ## Testing Plan - Added unit & e2e tests. --- **Co...
diff --git a/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py b/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py index aa99b7fafd1..cc070b773d8 100644 --- a/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py +++ b/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py @@ -129,6 +129,9 @@ def fragment_number_input() -> None...
2
1
1
[{"id": "G0", "claim": "The query_params validation incorrectly accepts string values because strings are Iterable, so the Iterable check must exclude strings (check Mapping first, then Iterable with a str exclusion) and raise StreamlitAPIException for strings, as the test test_st_switch_page_rejects_invalid_query_para...
null
streamlit__streamlit__13045
streamlit/streamlit
13,045
defect
930c185446117877f3583cd71876d2fd84f6c80f
3124f990fe6190aa19c74daa33a737f78c4ccfd8
Add support for setting spinner as `icon`
## Describe your changes Adds support for setting a spinner icon wherever we support the `icon` parameter (buttons, alerts, number input, ...). ## GitHub Issue Link (if applicable) - Closes https://github.com/streamlit/streamlit/issues/6415 ## Testing Plan - Add unit test and e2e test. --- **Contri...
diff --git a/e2e_playwright/st_button.py b/e2e_playwright/st_button.py index 651afa82c6d..eecc9079193 100644 --- a/e2e_playwright/st_button.py +++ b/e2e_playwright/st_button.py @@ -127,3 +127,5 @@ def on_click(x: int, y: int) -> None: key="dynamic_button_with_key", ) st.write("Clicked initial button:...
2
2
0
[{"id": "G0", "claim": "The docstring lines added for the new `\"spinner\"` option read 'Displays a spinner a icon.', a grammatical error that should read 'Displays a spinner icon.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring tex...
null
streamlit__streamlit__13051
streamlit/streamlit
13,051
defect
4601561d09cc6688ab932620038d3c19760a3ec2
61eaf7032e37b28bca149ea30f6cbbaea7f2f27c
Add performance tracking for mega tester app rendering
## Describe your changes Add performance tracking for mega tester app rendering. --- **Contribution License Agreement** By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
diff --git a/e2e_playwright/mega_tester_app_test.py b/e2e_playwright/mega_tester_app_test.py index 907fa1a50a8..e485ac1537c 100644 --- a/e2e_playwright/mega_tester_app_test.py +++ b/e2e_playwright/mega_tester_app_test.py @@ -17,9 +17,10 @@ import re from typing import TYPE_CHECKING +import pytest from playwright.s...
3
1
0
[{"id": "G0", "claim": "The combination of @pytest.mark.repeat(5) with 5 manual rerun_app calls executes 25 reruns instead of the intended 5, contradicting the comment about keeping the test short.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pe...
null
streamlit__streamlit__13080
streamlit/streamlit
13,080
defect
1bb282a9534e8661e152a2d8d30536714a459bd7
061cd5fb66d715dc4ee35add945648299bf9489a
Add deprecation note to `add_rows` command
## Describe your changes Soft deprecation of `add_rows` (showing logs + note on docs) to gather more feedback on the value and use-cases of the feature. More context: https://github.com/streamlit/streamlit/issues/13063 ## GitHub Issue Link (if applicable) - Related to https://github.com/streamlit/streamlit/iss...
diff --git a/lib/streamlit/elements/arrow.py b/lib/streamlit/elements/arrow.py index b530cbc802d..aad9b3213e3 100644 --- a/lib/streamlit/elements/arrow.py +++ b/lib/streamlit/elements/arrow.py @@ -910,6 +910,12 @@ def table( def add_rows(self, data: Data = None, **kwargs: Any) -> DeltaGenerator | None: ""...
2
2
0
[{"id": "G0", "claim": "The docstring's RST directive is written as `... important::` with three periods instead of `.. important::`, so the important directive will not render correctly in the documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
streamlit__streamlit__13093
streamlit/streamlit
13,093
defect
58dc3782b789f4103b769a7188e68bb9b686749c
ed55b476663bb8dd12a1045e39270ed05281f35e
Support passing query params to `st.page_link`
## Describe your changes Adds support for passing query parameters to `st.page_link`: ```python st.page_link(..., query_params={"foo": "bar", "baz": ["1", "2"]}) ``` ## GitHub Issue Link (if applicable) - Closes https://github.com/streamlit/streamlit/issues/8112 ## Testing Plan - Added unit & e2e te...
diff --git a/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py b/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py index 7fed77639c7..186d8cd244d 100644 --- a/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py +++ b/e2e_playwright/multipage_apps_v2/mpa_v2_basics.py @@ -144,6 +144,10 @@ def fragment_number_input() -> Non...
10
9
3
[{"id": "G0", "claim": "When appending query params to external links containing a fragment identifier, the params are incorrectly placed after the fragment; URL parsing should be used to insert them before the fragment.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
streamlit__streamlit__13103
streamlit/streamlit
13,103
defect
58dc3782b789f4103b769a7188e68bb9b686749c
ef7d0e697248268b9b1011ab83df3edd0b4d728d
Fix flaky e2e tests
## Describe your changes Fixes some recent e2e flakiness. --- **Contribution License Agreement** By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
diff --git a/e2e_playwright/multipage_apps/mpa_basics_test.py b/e2e_playwright/multipage_apps/mpa_basics_test.py index 6f297744369..bb0d163d166 100644 --- a/e2e_playwright/multipage_apps/mpa_basics_test.py +++ b/e2e_playwright/multipage_apps/mpa_basics_test.py @@ -66,7 +66,7 @@ def test_can_switch_between_pages_and_edi...
3
2
0
[{"id": "G0", "claim": "The added st.write(\"End of dialog\") line in the dialog test app appears to be debugging code without clear purpose and should be removed or replaced with a more explicit wait condition in the test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
streamlit__streamlit__13113
streamlit/streamlit
13,113
defect
ec4b45ff158e5ea7b7222e6b63aab32c810fdb78
3a873f10c59254dd6c63c058a932153d973c7b5d
Add path tooltip on `st.json` value click
## Describe your changes Shows a tooltip with the path information if a json value gets clicked: <img width="388" height="344" alt="image" src="https://github.com/user-attachments/assets/aaa978f5-cc44-45cc-a3e5-be3eb27882c2" /> **Note:** This is slightly hacky since the underlying library doesn't provide a lot...
diff --git a/e2e_playwright/st_json_test.py b/e2e_playwright/st_json_test.py index 9a51a12497c..5cb530bd804 100644 --- a/e2e_playwright/st_json_test.py +++ b/e2e_playwright/st_json_test.py @@ -65,3 +65,22 @@ def test_shows_copy_icon(themed_app: Page, assert_snapshot: ImageCompareFunction json_element.hover() ...
9
5
2
[{"id": "G0", "claim": "The `formatJsonPath` function does not escape double quotes or backslashes in JSON keys when generating bracket notation, which can produce malformed paths for keys like `foo\"bar` or `foo\\bar`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
streamlit__streamlit__13309
streamlit/streamlit
13,309
defect
8bfc8311295521a56bd4c0a6e5439794b1b22fec
b4d1482845e82f78edd15eda21e74ae498d77430
Fix data editor regression when starting from empty column
## Describe your changes Fixes a regression where starting with an empty column in data editor leads to the value being returned as list. ## GitHub Issue Link (if applicable) - Closes #13305 ## Testing Plan - Added unit and e2e tests. --- **Contribution License Agreement** By submitting this pul...
diff --git a/e2e_playwright/shared/dataframe_utils.py b/e2e_playwright/shared/dataframe_utils.py index 085c23a53b7..ba6f5b6d675 100644 --- a/e2e_playwright/shared/dataframe_utils.py +++ b/e2e_playwright/shared/dataframe_utils.py @@ -24,6 +24,7 @@ expect, ) +from e2e_playwright.conftest import wait_for_app_run ...
2
2
2
[{"id": "G0", "claim": "The E2E verification of the empty-column result (st.write of str(empty_col_result) checked with substring matching) may not reliably distinguish scalar values from list-wrapped values such as [42], so the assertions would not detect the regression the test is designed to catch; use a more explic...
null
streamlit__streamlit__13333
streamlit/streamlit
13,333
defect
c4c561ff070206f78970b6d2a2fde393ed6335e7
c7793bdb0f552446c1c052c277a8b7df5e6dc9ee
Fix auth-related issues caused by dependency updates
## Describe your changes Authlib (1.6.6) & tornado (6.5.3) got updated, causing some issues with our CI. The authlib session aspect likely also breaks existing usage and requires a patch. Closes https://github.com/streamlit/streamlit/issues/13335 --- **Contribution License Agreement** By submitting ...
diff --git a/lib/streamlit/web/server/oidc_mixin.py b/lib/streamlit/web/server/oidc_mixin.py index 90ec850df87..387d005051b 100644 --- a/lib/streamlit/web/server/oidc_mixin.py +++ b/lib/streamlit/web/server/oidc_mixin.py @@ -83,7 +83,9 @@ def authorize_access_token( "state": request_handler.get_argument("s...
8
3
0
[{"id": "G1", "claim": "AuthCallbackHandler.get calls authorize_access_token without exception handling, so a missing/expired state (now raised as OAuthError invalid_state) and token-exchange errors surface as a 500 instead of a controlled redirect with a sanitized log.", "category": "correctness", "verdict": "supporte...
null
streamlit__streamlit__13365
streamlit/streamlit
13,365
defect
0c6aa0b2f1847d20e58d3b6bd9d16b4604e9cc5f
d7e9d6ed5255d70c334f5658488c6dd8508ba868
[fix] tooltip text leaking with newlines in help
## Describe your changes Fixes tooltip rendering when help text contains newlines (`\n\n`). Previously, the `:help[]` text directive would break, causing help text to render in the markdown/caption content instead of inside the tooltip. **Solution:** - Pass help text via react context instead of in the directive...
diff --git a/e2e_playwright/st_markdown.py b/e2e_playwright/st_markdown.py index 04d8ac51454..061024652f1 100644 --- a/e2e_playwright/st_markdown.py +++ b/e2e_playwright/st_markdown.py @@ -494,3 +494,22 @@ def draw_header_test(join_output: bool) -> None: text_alignment="justify", help="This is a help tooltip!...
3
3
3
[{"id": "G0", "claim": "Escaping only real newlines leaves pre-existing literal backslash-n sequences in help text, so the unescape step converts them into actual newlines and corrupts the tooltip text.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
streamlit__streamlit__13383
streamlit/streamlit
13,383
defect
d87a35d64ed50191b6d03d70e75dcce7456cfdd1
08364980a7c6e7b9b5db18614f2f086082e3045c
Allow dynamic changes to selectbox options when `key` is provided
## Describe your changes Allow dynamically changing the options for `st.selectbox` without triggering an identity change / state reset. If the current selected options isn't in the list of available option, it will be reset to the default value. ## GitHub Issue Link (if applicable) - Closes https://github.com...
diff --git a/lib/streamlit/elements/widgets/selectbox.py b/lib/streamlit/elements/widgets/selectbox.py index dccb8fc09a1..a3624bf5202 100644 --- a/lib/streamlit/elements/widgets/selectbox.py +++ b/lib/streamlit/elements/widgets/selectbox.py @@ -13,6 +13,7 @@ # limitations under the License. from __future__ import ann...
12
4
2
[{"id": "G0", "claim": "The `import streamlit as st` statements inside the `script()` test functions are redundant given the module-level import and should be removed.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering the behavior...
null
streamlit__streamlit__13384
streamlit/streamlit
13,384
defect
78d64d2ebdfcbfa3d201e952e865197b2947c278
d4248259542287c3883a644f907cdda203307938
fix(multiselect): preserve scroll position when removing items
Fixes #13317 - When removing an item from st.multiselect, the scroll position was being reset. This adds scroll position tracking via refs and restores the position using useLayoutEffect. ## Describe your changes Fixes the scroll position reset issue in `st.multiselect` when removing an item. The scroll po...
diff --git a/e2e_playwright/st_multiselect_test.py b/e2e_playwright/st_multiselect_test.py index 2b848c43ee2..aa9a0ddd1ee 100644 --- a/e2e_playwright/st_multiselect_test.py +++ b/e2e_playwright/st_multiselect_test.py @@ -476,3 +476,27 @@ def test_multiselect_empty_options_disabled_when_no_accept_new(app: Page): ...
8
4
1
[{"id": "G0", "claim": "The new E2E test scrolls the value container to the bottom and then asserts exact scroll equality after removing an item, which will fail because the restored position is clamped to a smaller maximum scrollHeight, contradicting the comment that mentions a tolerance.", "category": "correctness", ...
null
streamlit__streamlit__13414
streamlit/streamlit
13,414
defect
7af8313983a03120f282daaba4e4c6324c2e23bd
988da86a1f5378742a4e077f92d8792a5a633f26
Add new session_duration_seconds_total stats
## Describe your changes While this isn't exactly the best way of doing this, it'd be useful for us to have a new metric to track the total length of time users spend in active sessions (see https://github.com/streamlit/streamlit/pull/13324#discussion_r2620155153). This PR adds this new metric by keeping track ...
diff --git a/lib/streamlit/runtime/stats.py b/lib/streamlit/runtime/stats.py index 25bc7844ec1..ad410a610a4 100644 --- a/lib/streamlit/runtime/stats.py +++ b/lib/streamlit/runtime/stats.py @@ -19,6 +19,7 @@ CACHE_MEMORY_FAMILY: Final = "cache_memory_bytes" SESSION_EVENTS_FAMILY: Final = "session_events_total" +SESS...
2
2
0
[{"id": "G0", "claim": "The comment in test_session_duration_with_reconnect miscalculates the reconnect-to-close duration: it should say \"Duration from reconnect (6) to close (16) = 10 seconds\" instead of 15 seconds.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
streamlit__streamlit__13448
streamlit/streamlit
13,448
defect
ad2f1fb6d97314c034885ba2e0fbacf9a8851950
27e1732afbdfeb50c498be91d1a50a9b468f76a9
Allow dynamic changes to multiselect options when `key` is provided
## Describe your changes Allow dynamically changing the options for `st.multiselect` without triggering an identity change / state reset. If the current selected options isn't in the list of available option, it will be reset to the default value. ## GitHub Issue Link (if applicable) - Closes https://github.c...
diff --git a/e2e_playwright/st_multiselect.py b/e2e_playwright/st_multiselect.py index b861148ccc5..c26b334b5c0 100644 --- a/e2e_playwright/st_multiselect.py +++ b/e2e_playwright/st_multiselect.py @@ -186,12 +186,11 @@ def on_change(): args=("Updated ms arg",), kwargs={"param": "updated kwarg param"},...
5
3
0
[{"id": "G0", "claim": "The new multiselect tests redundantly import `import streamlit as st` inside their nested script() functions even though streamlit is already imported as st at module level, and those inner import lines should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2",...
null
streamlit__streamlit__13472
streamlit/streamlit
13,472
defect
6e8a2ee388af6274e181a63975aaf69c627d7fed
10a2e22491c5212855d3baa1e5828f8b69d52826
Add "client.showErrorLinks` config option (#11238)"
## Describe your changes Adds a new client.showExceptionLinks config option that allows users to disable the Google/ChatGPT help links shown in exception displays on localhost. When set to false in .streamlit/config.toml: toml [client] showExceptionLinks = false The external help links (Copy, Ask Google,...
diff --git a/frontend/app/src/App.tsx b/frontend/app/src/App.tsx index 5844dd837d6..3fe9597485f 100644 --- a/frontend/app/src/App.tsx +++ b/frontend/app/src/App.tsx @@ -188,6 +188,7 @@ interface State { allowRunOnSave: boolean scriptFinishedHandlers: (() => void)[] toolbarMode: Config.ToolbarMode + showExcept...
6
6
3
[{"id": "G0", "claim": "The new test passes libConfigContext to the render function, which ignores the override, so the test does not actually verify behaviour when showExceptionLinks is false; it should use renderWithContexts.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
streamlit__streamlit__13481
streamlit/streamlit
13,481
defect
45263cb4e00bc59aab3ee5221cb0e1c6de21d5fe
2784dd839cab2a332cd48236c5e7114b8419f926
Add to_dict to TokensProxy
## Describe your changes This pull request adds a new utility method to the `TokensProxy` class in `lib/streamlit/user_info.py` to improve usability. Specifically, when writing `st.write(st.user.tokens)`, it should use `st.json` under the hood. * Added a `to_dict` method to the `TokensProxy` class, allowing easy ...
diff --git a/lib/streamlit/user_info.py b/lib/streamlit/user_info.py index 668bcbadf9e..1c0c14ae635 100644 --- a/lib/streamlit/user_info.py +++ b/lib/streamlit/user_info.py @@ -469,6 +469,9 @@ def __iter__(self) -> Iterator[str]: def __len__(self) -> int: return len(self._tokens) + def to_dict(self) ...
2
2
1
[{"id": "G0", "claim": "TokensProxy.to_dict returns a direct reference to the internal _tokens dictionary instead of a copy, breaking the read-only guarantee, and the new test never checks that the returned dictionary is independent of the proxy's internal state.", "category": "correctness", "verdict": "supported", "pr...
null
streamlit__streamlit__13506
streamlit/streamlit
13,506
defect
9b42523a27eeba277a09c20a182786267f9d5e45
e7785e9b421b4e19d6f737ef86c8f661cf7347bd
Add session-scoped connection support.
## Describe your changes Add class-level `scope` method to `BaseConnection`. Use it when caching instances created by `st.connection`. Add instance-level `close` method to `BaseConnection`. Register it as the `on_release` hook when caching instances created by `st.connection`. This is part of [the session-scop...
diff --git a/lib/streamlit/connections/base_connection.py b/lib/streamlit/connections/base_connection.py index 3d131ae2402..ae29fd3b0bd 100644 --- a/lib/streamlit/connections/base_connection.py +++ b/lib/streamlit/connections/base_connection.py @@ -16,7 +16,7 @@ import json from abc import ABC, abstractmethod -from...
6
3
0
[{"id": "G0", "claim": "ConnectionWithClose in test_close_is_passed_to_cache overrides __init__ without calling the base class __init__, and should call super().__init__() before setting close_count so BaseConnection is properly initialized per its documented contract.", "category": "testing", "verdict": "supported", "...
null
streamlit__streamlit__13512
streamlit/streamlit
13,512
defect
46a862b66b01212b1ab3122aa50095040fb16792
4cd1a82c031dcf711d3e0fd22e7b3020dc1e46ec
Allow dynamically changing in min, max and step in `st.number_input`
## Describe your changes Allow dynamically changing the `min_value`, `max_value` and `step` of `st.number_input` without triggering an identity change / state reset. If the current selected options isn't in the list of available option, it will be reset to the default value. ## GitHub Issue Link (if applicable) ...
diff --git a/e2e_playwright/st_number_input.py b/e2e_playwright/st_number_input.py index 2b24714b5ff..9d070a8ebe2 100644 --- a/e2e_playwright/st_number_input.py +++ b/e2e_playwright/st_number_input.py @@ -124,11 +124,9 @@ def on_change(): ), args=("Updated text arg",), kwargs={"param": "updat...
5
3
0
[{"id": "G0", "claim": "Remove the redundant inner `import streamlit as st` lines from the nested script() functions of the new dynamic-bounds tests and rely on the existing top-level import on line 22.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
streamlit__streamlit__13518
streamlit/streamlit
13,518
defect
408cbbdbab855cddc5c572ba6db3d133e399fead
c52673d8070b430453da8e47c4d21bf27b15f370
[feat] Move the isolate_styles param in CCv2
## Describe your changes Move `isolate_styles` parameter from component mount-time to component registration time. This change makes the API more intuitive by setting style isolation when defining a component rather than when mounting it. Key changes: - Added `isolate_styles` parameter to `component()` function - Rem...
diff --git a/e2e_playwright/bidi_components/basics.py b/e2e_playwright/bidi_components/basics.py index 33c1696512a..1299a61e3a3 100644 --- a/e2e_playwright/bidi_components/basics.py +++ b/e2e_playwright/bidi_components/basics.py @@ -98,7 +98,6 @@ def stateful_component( default: dict[str, Any] | None = None, ) ->...
4
4
0
[{"id": "G0", "claim": "In test_component_mount_ignores_isolate_styles_kwarg the module streamlit.components.v2 is imported with both 'import' and 'from ... import'; pick one import style and patch that symbol directly instead of importing the module inside the function.", "category": "maintainability", "verdict": "sup...
null
streamlit__streamlit__13538
streamlit/streamlit
13,538
defect
20524445d12ed18ea370a58dac70868a04a98ce3
d5006464b495e9481c444a8c106b57a79c76ba7e
Add SnowflakeCallersRightsConnection.
## Describe your changes Create a new BaseSnowflakeConnection with all existing methods other than `_connect` overridden. Make SnowflakeConnection a subclass with the existing `_connect` implementation. Add a `close` method to BaseSnowflakeConnection. Create SnowflakeCallersRightsConnection with session-scopin...
diff --git a/lib/streamlit/connections/__init__.py b/lib/streamlit/connections/__init__.py index 10ffb45343d..ad2c25cd08b 100644 --- a/lib/streamlit/connections/__init__.py +++ b/lib/streamlit/connections/__init__.py @@ -13,7 +13,10 @@ # limitations under the License. from streamlit.connections.base_connection impo...
12
5
2
[{"id": "G0", "claim": "User-provided **kwargs can override the generated connection parameters, including the caller's rights authentication token, which contradicts the documentation and would allow token substitution, so the parameter order should be reversed (or security-critical params protected) or the documentat...
null
streamlit__streamlit__13544
streamlit/streamlit
13,544
defect
7fb3d93d3a8286fdad36f529fb4633c76110a0e9
d04571c097694bb73e97e0934bd42132bc169037
[test] Add e2e typing test utils
## Describe your changes In an effort to get better coverage of the intersection of Global Hotkeys and common input elements, this PR: - Created a new shared utility module `input_utils.py` with helper functions for typing tests - Added a test that types various characters into a `st.text_input` and a CCv2-owned input...
diff --git a/e2e_playwright/bidi_components/basics.py b/e2e_playwright/bidi_components/basics.py index 84ab9a9f8a5..254c1411979 100644 --- a/e2e_playwright/bidi_components/basics.py +++ b/e2e_playwright/bidi_components/basics.py @@ -527,6 +527,56 @@ def _handle_basic_change() -> None: st.text(f"session_state: {st....
2
1
0
[{"id": "G0", "claim": "The docstring of `expect_global_hotkeys_not_fired` should follow Numpy style with Parameters and Returns sections describing its parameters.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the added...
null
streamlit__streamlit__13550
streamlit/streamlit
13,550
defect
b1c05fccb21bea2bcaf931e7e5cfb8355ac887eb
a94068956f2a239a6ed89f49ee999ae51137220b
feat: add metricValueFontSize and metricValueFontWeight theme options
## feat: add metricValueFontSize and metricValueFontWeight theme options Add `metricValueFontSize` and `metricValueFontWeight` theme configuration options to customize st.metric value text appearance. ### Example configuration ```toml [theme] metricValueFontSize = "3rem" # or "48px" or "48" metricValueFo...
diff --git a/frontend/lib/src/components/elements/Metric/Metric.test.tsx b/frontend/lib/src/components/elements/Metric/Metric.test.tsx index 94d01d2ca54..41a2ba3cb2b 100644 --- a/frontend/lib/src/components/elements/Metric/Metric.test.tsx +++ b/frontend/lib/src/components/elements/Metric/Metric.test.tsx @@ -196,6 +196,...
10
6
2
[{"id": "G0", "claim": "Add integration tests verifying that custom metricValueFontSize/metricValueFontWeight theme values are actually applied to the metric value element (e.g. set the font size via environment variable and check the CSS and/or take a snapshot).", "category": "testing", "verdict": "supported", "priori...
null
streamlit__streamlit__13556
streamlit/streamlit
13,556
defect
b1c05fccb21bea2bcaf931e7e5cfb8355ac887eb
06bb5ff76c18b9c362be52dcf508b62a63635e20
[fix] Fix upload button functionality after drag-drop and delete in `st.chat_input`
## Describe your changes Fixed an issue where the file upload button in `st.chat_input` would stop working after drag-dropping a file and then deleting it. The fix includes: 1. Added a reset counter to force re-render of dropzone components when files are cleared 2. Refactored `ChatFileUploadButton` to use its own dr...
diff --git a/e2e_playwright/st_chat_input_test.py b/e2e_playwright/st_chat_input_test.py index 2de1e2604f9..6a8dcb6eaf5 100644 --- a/e2e_playwright/st_chat_input_test.py +++ b/e2e_playwright/st_chat_input_test.py @@ -1758,3 +1758,71 @@ def handle_route(route: Route): finally: # Clean up route interception...
8
7
0
[{"id": "G0", "claim": "The useEffect that derives dropzoneResetCounter from files.length violates the 'You Might Not Need an Effect' principle and should be refactored to compute the value during render or otherwise handle the reset logic without using an Effect for state derivation.", "category": "design", "verdict":...
null
streamlit__streamlit__13558
streamlit/streamlit
13,558
defect
6e7afbfc49cd89df7ecb752cdbcef7523d98e998
6b8e6e492942acf20d8c3a7d20e41c2aff63bcc7
Use `key` as main identity for `st.dataframe` with selections
## Describe your changes If a custom `key` is passed to a `st.dataframe` with selections activated, it will be used as the main identity. This allows for dynamically changing other parameters and and the input data between reruns without recreating the widgets in the frontend and losing their state. ## GitHub Iss...
diff --git a/e2e_playwright/st_dataframe_selections.py b/e2e_playwright/st_dataframe_selections.py index b43c52d62dc..2584d52d9f8 100644 --- a/e2e_playwright/st_dataframe_selections.py +++ b/e2e_playwright/st_dataframe_selections.py @@ -243,3 +243,36 @@ def test_fragment() -> None: key="multi_row_multi_column_mult...
2
1
1
[{"id": "G0", "claim": "The new unit test should add a negative assertion that, when no key is provided, the element ID changes when data or other parameters change, to demonstrate the key_as_main_identity feature is required for stability.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "in...
null
streamlit__streamlit__13559
streamlit/streamlit
13,559
defect
6e7afbfc49cd89df7ecb752cdbcef7523d98e998
f8afd1ca39400fee14ee445638ce0a1dd267d3af
Use `key` as main identity for vega charts with selections
## Describe your changes If a custom `key` is passed to a `st.altair_chart` and `st.vega_lite_chart` with selections activated, it will be used as the main identity. This allows for dynamically changing other parameters between reruns without recreating the widgets in the frontend and losing their state. ## GitHu...
diff --git a/e2e_playwright/st_altair_chart_basic_select.py b/e2e_playwright/st_altair_chart_basic_select.py index e1dd3983804..b5eeed416a7 100644 --- a/e2e_playwright/st_altair_chart_basic_select.py +++ b/e2e_playwright/st_altair_chart_basic_select.py @@ -315,3 +315,59 @@ def test_fragment(): st.session_state.run...
2
1
0
[{"id": "G0", "claim": "The parameterized test only includes one test case, which makes the parameterization unnecessary; remove the decorator and implement the single case directly, or add more meaningful test cases.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
streamlit__streamlit__13571
streamlit/streamlit
13,571
defect
5d3409e217da8da747609b7e590e811464e266df
063cc5b2d2864c888e9cb724c17329d78f130aea
Support new auth features in Starlette
## Describe your changes Implementing auth-related features from https://github.com/streamlit/streamlit/pull/12693 and https://github.com/streamlit/streamlit/pull/12693 for the new Starlette implementation. This also applies some refactoring for better reuse and adds an e2e test. ## Testing Plan - Added unit a...
diff --git a/e2e_playwright/auth.py b/e2e_playwright/auth.py index ab40391be40..e28dea2c29a 100644 --- a/e2e_playwright/auth.py +++ b/e2e_playwright/auth.py @@ -32,3 +32,9 @@ st.markdown("HAS ID TOKEN") if "access" in st.user.tokens: st.markdown("HAS ACCESS TOKEN") + + logout_btn =...
6
5
2
[{"id": "G0", "claim": "The test comment \"Verify provider in cookie is required for logout URL\" does not match the assertion (which checks for \"localhost\"), so either update the comment to describe what is actually tested or add a meaningful assertion of the provider requirement.", "category": "documentation", "ver...
null
streamlit__streamlit__13593
streamlit/streamlit
13,593
defect
d74b8655345606884622b66bc5edcb2f9961fc7c
b55bac3798139e4f03451bcc1c3a983dffd6e0dc
Simplify theme caching logic
## Describe your changes Refactor theme caching logic to store only the high‑level selection - `"System"`, `"Light"`, or `"Dark"` in localStorage as a simple string instead of persisting any theme configs. - Simplifies cache behavior (also sets the stage for upcoming app menu refactor) - Bump the cache version to...
diff --git a/e2e_playwright/main_menu.py b/e2e_playwright/main_menu.py index 590b8eed6c9..5685a5fcb8f 100644 --- a/e2e_playwright/main_menu.py +++ b/e2e_playwright/main_menu.py @@ -17,3 +17,5 @@ menu_items: MenuItems = {"about": "_*This can be markdown!*_"} st.set_page_config(menu_items=menu_items) + +st.header("Ma...
5
3
1
[{"id": "G0", "claim": "In three App.test.tsx cases the cached theme is written as an object ({ selection: ... }) although the new cache format stores a plain ThemeSelection string, so the lines should be JSON.stringify(\"System\") and JSON.stringify(\"Light\").", "category": "correctness", "verdict": "supported", "pri...
null
streamlit__streamlit__13620
streamlit/streamlit
13,620
defect
272db2450945a43431be63be50e4f2e65980d30e
d66973dfee18a7c173e5dc63ef5ad360a7d071f7
Allow dynamically changing `min_value` and `max_value` in `st.datetime_input` when `key` is provided
## Describe your changes Allow dynamically changing the `min_value`, `max_value` of `st.datetime_input` without triggering an identity change / state reset. If the current selected value isn't in the range, it will be reset to the default value. ## GitHub Issue Link (if applicable) - Related issue https://git...
diff --git a/e2e_playwright/st_datetime_input.py b/e2e_playwright/st_datetime_input.py index dd38360d4b7..33d1c779df1 100644 --- a/e2e_playwright/st_datetime_input.py +++ b/e2e_playwright/st_datetime_input.py @@ -124,6 +124,8 @@ def datetime_fragment() -> None: key="dynamic_datetime_input_with_key", o...
3
2
0
[{"id": "G0", "claim": "Remove the redundant `import streamlit as st` re-imported inside the `script()` helpers of the new tests in datetime_input_test.py, since the module already imports it at line 25.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
streamlit__streamlit__13625
streamlit/streamlit
13,625
defect
5e3792de772daedc3e1ae2ffa3f732aa684c4cb6
19add40769940b133dfe7fba1d4d496a4b0dd410
Support auto-rerun when `config.toml` is created
## Describe your changes When Streamlit starts without a `config.toml` file, creating one now triggers an automatic app rerun to apply the configuration. This addresses the issue where newly created config files were not recognized without a manual server restart. The implementation watches parent `.streamlit` direct...
diff --git a/lib/streamlit/web/bootstrap.py b/lib/streamlit/web/bootstrap.py index fb8317f3ac7..dc6326ba81e 100644 --- a/lib/streamlit/web/bootstrap.py +++ b/lib/streamlit/web/bootstrap.py @@ -23,7 +23,7 @@ from streamlit import cli_util, config, env_util, file_util, net_util, secrets from streamlit.logger import g...
2
2
1
[{"id": "G0", "claim": "The unused exists_side_effect function in test_install_config_watcher_mixed_existing_and_nonexistent is dead code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing secrets.toml will now also t...
null
streamlit__streamlit__13628
streamlit/streamlit
13,628
defect
5e3792de772daedc3e1ae2ffa3f732aa684c4cb6
cfebf126fb687880506b20f7c7994afa14f9ea6f
Set `add_rows` deprecation warning to show in browser
## Describe your changes Enable the `add_rows` deprecation warning to be displayed in the browser by setting `show_in_browser=True`. This ensures users see the deprecation notice in the Streamlit frontend, making them aware that the feature may be removed in the future. ## Testing Plan - Updated the unit test to ver...
diff --git a/e2e_playwright/st_add_rows_test.py b/e2e_playwright/st_add_rows_test.py index 3977050b161..4b31dc15f19 100644 --- a/e2e_playwright/st_add_rows_test.py +++ b/e2e_playwright/st_add_rows_test.py @@ -50,3 +50,10 @@ def test_correctly_adds_rows_to_dataframe( def test_raises_an_exception_when_shapes_dont_match(...
3
3
1
[{"id": "G0", "claim": "The E2E test should expect 14 deprecation warnings instead of 10, since the test app makes 14 add_rows calls and each call with show_in_browser=True produces one warning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The com...
null
streamlit__streamlit__13648
streamlit/streamlit
13,648
defect
cc93edbd82eb561ec3fd15655befbdc733db9f16
a4b1206764edcb14f3081926aa18354c0e511dd1
Fix selectbox and multiselect clearing selections for custom objects
## Describe your changes Fixes issue #13646 where `st.multiselect()` and `st.selectbox` clears user selections after each script rerun when using custom class objects without `__eq__` implementation and a `format_func` parameter. This was a regression introduced in PR #13448. **Root Cause**: The validation logic ...
diff --git a/e2e_playwright/st_multiselect.py b/e2e_playwright/st_multiselect.py index ad4da2a0dfc..48ac5a2c8f9 100644 --- a/e2e_playwright/st_multiselect.py +++ b/e2e_playwright/st_multiselect.py @@ -217,3 +217,35 @@ def on_change(): format_func=lambda x: x.capitalize(), ) st.write("Initial multisel...
4
1
1
[{"id": "G0", "claim": "Validation uses format_func comparison while the existing serialize method uses options.index() (==), so custom objects without __eq__ can pass validation but fail serialization, and the failure fallback then assumes the value is a string, which can cause incorrect serialization when widget_stat...
null
streamlit__streamlit__13652
streamlit/streamlit
13,652
defect
9ce2c0f8f860b9607df990dc7877a69d7de96347
f2b555b506d43d08e6bc478c27cfddab1a517b84
Fix SnowflakeConnection.query() cache key to include params
## Describe your changes Fixed a bug in `SnowflakeConnection.query()` where the `params` argument was captured as a closure variable instead of being passed as an explicit parameter to the cached `_query` function. This caused different parameter values to incorrectly share the same cache entry, returning stale resu...
diff --git a/lib/streamlit/connections/snowflake_connection.py b/lib/streamlit/connections/snowflake_connection.py index ba4fcc441c4..8b92570e31d 100644 --- a/lib/streamlit/connections/snowflake_connection.py +++ b/lib/streamlit/connections/snowflake_connection.py @@ -135,7 +135,7 @@ def query( ), ...
2
2
0
[{"id": "G0", "claim": "The new test should add assertions verifying that execute was called with the correct params values (e.g. via mock_cursor.execute.assert_any_call for params=[\"active\"] and params=[\"inactive\"]), so it checks not just caching counts but that the correct data flows through to the Snowflake conn...
null
streamlit__streamlit__13653
streamlit/streamlit
13,653
defect
9ce2c0f8f860b9607df990dc7877a69d7de96347
072400dc5d53b9b437e6144e0148a29f0e31e756
Fix sidebar collapsing on mobile when clicking portaled elements
## Describe your changes When clicking on portaled elements (dropdowns, modals, etc.) on mobile, the sidebar would incorrectly collapse because portals are rendered outside the normal DOM hierarchy. This fix simplifies portal detection by checking if the click target is within the main app container. Since portals ren...
diff --git a/frontend/app/src/components/Sidebar/Sidebar.test.tsx b/frontend/app/src/components/Sidebar/Sidebar.test.tsx index ff255bf7df4..56729ebf4df 100644 --- a/frontend/app/src/components/Sidebar/Sidebar.test.tsx +++ b/frontend/app/src/components/Sidebar/Sidebar.test.tsx @@ -34,6 +34,24 @@ import { Logo, PageConfi...
7
6
1
[{"id": "G0", "claim": "Calling document.querySelector for the main app container on every mousedown can impact performance, so the lookup should be done once and cached (a ref or a variable in the effect scope) instead of inside the event handler.", "category": "performance", "verdict": "supported", "priority": "P2", ...
null
streamlit__streamlit__13659
streamlit/streamlit
13,659
defect
4c949c1662c9632f65f40d65d26fdde0214380f3
781b7d2fc48d91500bad864b6c360297eb31078b
Fix crash with container elements in spinner context
## Describe your changes Fix a regression where creating container elements (`st.columns`, `st.tabs`) inside a container within a `st.spinner` context caused the app to crash with "Bad delta path index" errors. The root cause was that `SetNodeByDeltaPathVisitor.visitTransientNode` incorrectly consumed an index from t...
diff --git a/frontend/lib/src/render-tree/visitors/SetNodeByDeltaPathVisitor.test.ts b/frontend/lib/src/render-tree/visitors/SetNodeByDeltaPathVisitor.test.ts index 3090070632f..691ab916c3e 100644 --- a/frontend/lib/src/render-tree/visitors/SetNodeByDeltaPathVisitor.test.ts +++ b/frontend/lib/src/render-tree/visitors/S...
1
1
0
[{"id": "G0", "claim": "Consider adding an E2E test matching the reproduction steps from issue #13658 (containers created inside a spinner context), since none exists for this scenario even though the unit tests are thorough.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
streamlit__streamlit__13678
streamlit/streamlit
13,678
defect
429841c689195e9531ba36e98500f498da0cd98b
07b02c89e849b6e23dcfbfe21297fd20c6fdd230
[feat] Add external URL runner in e2e playwright
## Describe your changes Added support for running Playwright E2E tests against **externally hosted** Streamlit apps (instead of starting a local app server). - **External app / host modes** - `--external-app-url` (or `STREAMLIT_E2E_EXTERNAL_APP_URL`) to target an already-running app URL - Optional `--exter...
diff --git a/e2e_playwright/conftest.py b/e2e_playwright/conftest.py index 1c530b7a4cc..50d507b6a6b 100644 --- a/e2e_playwright/conftest.py +++ b/e2e_playwright/conftest.py @@ -33,7 +33,7 @@ from pathlib import Path from random import randint from tempfile import TemporaryFile -from typing import TYPE_CHECKING, Any,...
15
12
1
[{"id": "G0", "claim": "The new marker is named `iframeTest`, which is camelCase, inconsistent with the codebase's snake_case markers and does not clearly convey its purpose; it should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
streamlit__streamlit__13720
streamlit/streamlit
13,720
defect
3dff65529132c2ebf6c24f4e9faa4204c786a3f3
140b96cef52fefb41ca59edcbbb50f9b01399a92
[fix] Display wildcard addresses as localhost in URLs
## Describe your changes Improved URL display for wildcard IP addresses. When using wildcard addresses like "0.0.0.0" or "::" for the server, these are now displayed as "localhost" in the browser URL and console output. This makes the URLs more user-friendly and avoids confusion, as wildcard addresses aren't directly ...
diff --git a/lib/streamlit/web/bootstrap.py b/lib/streamlit/web/bootstrap.py index 5919afa79c6..be9b1c4ab41 100644 --- a/lib/streamlit/web/bootstrap.py +++ b/lib/streamlit/web/bootstrap.py @@ -139,7 +139,7 @@ def maybe_open_browser() -> None: if server_address_is_unix_socket(): # Don't ope...
2
2
1
[{"id": "G0", "claim": "The new test test_get_display_address_does_not_modify_non_wildcards is redundant with the parameterized test_get_display_address because its addresses (127.0.0.1, localhost, 10.0.0.1) are already covered there; the reviewer suggests changing its address list to ones not already covered.", "categ...
null
streamlit__streamlit__13795
streamlit/streamlit
13,795
defect
ce7f728e45798a71613409726f87794558c863fb
98d61dccc87ca41b985172b44588896709529e7e
Add select all and select x matches (select all 2)
## Describe your changes This PR adds a "Select all" and "Select X matches" feature to the Multiselect widget. When the dropdown is open: - Without a search filter: Shows "Select all" option to select all remaining unselected options, but only if there is more than one item - With a search filter: Shows "Select X ...
diff --git a/e2e_playwright/st_multiselect_test.py b/e2e_playwright/st_multiselect_test.py index 6284ae45be0..204163d8909 100644 --- a/e2e_playwright/st_multiselect_test.py +++ b/e2e_playwright/st_multiselect_test.py @@ -172,7 +172,10 @@ def test_multiselect_long_values_in_dropdown( multiselect_elem = get_multisel...
5
1
1
[{"id": "G0", "claim": "The new 'Select all' option changes dropdown item counts, so existing E2E count assertions in e2e_playwright/st_multiselect_test.py (to_have_count(2) near line 157 and to_have_count(4) near line 379) may fail and need to be verified and updated.", "category": "testing", "verdict": "supported", "...
null
streamlit__streamlit__13812
streamlit/streamlit
13,812
defect
77f595d3feae3f93be0b5f1cfbfaf3e5fcd9f2d8
c7728f91c8e4ee5670aeee7cb273eac62b576a24
Add support for pandas 3.x
## Describe your changes Update pandas dependency upper bound from `<3` to `<4` to support pandas 3.0 and later versions. Streamlit's codebase is already fully compatible with pandas 3.x, including all breaking changes such as Copy-on-Write semantics, string dtype inference, and datetime resolution changes. ## Gi...
diff --git a/lib/pyproject.toml b/lib/pyproject.toml index 7414eb184d2..cf145e94786 100644 --- a/lib/pyproject.toml +++ b/lib/pyproject.toml @@ -67,7 +67,7 @@ dependencies = [ "packaging>=20", # Pandas <1.4 has a bug related to deleting columns in a DataFrame changing # the index dtype. - "pandas>=1.4.0,<3", ...
13
6
2
[{"id": "G0", "claim": "The pull request should wait until pydeck resolves its pandas 3.x incompatibility (deck.gl#9986) before enabling pandas 3.x, since pydeck-based charts would break.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The override-d...
null
streamlit__streamlit__13819
streamlit/streamlit
13,819
defect
732dd9bbd3e4464abdf9787e99abc92db102f3d4
907e47153f65c06cb6c11240a0b06fac4e5bf4f5
Attempt to fix e2e test hangs at 99% completion
## Describe your changes Attempt to fix e2e tests hanging at 99% completion. This might be due to unbounded subprocess termination waits. The `AsyncSubprocess` class now uses proper timeouts during cleanup to prevent indefinite hangs when Streamlit servers don't shut down gracefully. **Key changes:** - Add 20-se...
diff --git a/e2e_playwright/conftest.py b/e2e_playwright/conftest.py index 1c530b7a4cc..32d99775342 100644 --- a/e2e_playwright/conftest.py +++ b/e2e_playwright/conftest.py @@ -129,7 +129,16 @@ def terminate(self) -> str | None: """Terminate the process and return its stdout/stderr in a string.""" if ...
11
7
2
[{"id": "G0", "claim": "The CDP event listener for \"Network.dataReceived\" registered on the client is never explicitly removed during cleanup; a `client.remove_listener(\"Network.dataReceived\", on_data_received)` call should be added alongside the `Network.disable` send to ensure complete cleanup and prevent resourc...
null
streamlit__streamlit__13826
streamlit/streamlit
13,826
defect
dc9d8fe4ce9e9f9bddfe9f44255ad20ecd9e88e5
f3f87eb9edc57d96d2b277de0de85947ad776079
Rename `ArrowVegaLiteChart` proto to `VegaLiteChart`
## Describe your changes Renames the `ArrowVegaLiteChart` proto assets to `VegaLiteChart` to better align with other elements. The `Arrow` prefix is a legacy aspect when we had components with two different ways of data serialization. It's also planned to rename the frontend component to `VegaLiteChart` in a follow-...
diff --git a/frontend/lib/src/components/core/Block/ElementNodeRenderer.tsx b/frontend/lib/src/components/core/Block/ElementNodeRenderer.tsx index 26097bf575b..465d980c18c 100644 --- a/frontend/lib/src/components/core/Block/ElementNodeRenderer.tsx +++ b/frontend/lib/src/components/core/Block/ElementNodeRenderer.tsx @@ ...
1
1
0
[{"id": "G0", "claim": "For consistency with the proto rename, the local variable `arrow_vega_lite_proto` in test_inside_form_on_select_rerun should be renamed to `vega_lite_proto` to match the naming used elsewhere in the test file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i...
null
streamlit__streamlit__13829
streamlit/streamlit
13,829
defect
a3c4ce63494460919c27be930afa6dd9332d6c14
f20b7b588dbafe18a05aefe23c08d290d7023d34
Add `client.allowedOrigins` config option
## Describe your changes Implement a new `client.allowedOrigins` configuration option to allow deployers to customize which origins can send cross-origin postMessage commands to embedded Streamlit apps. The default list of Community Cloud origins is now configurable via `config.toml` instead of being hardcoded. #...
diff --git a/lib/streamlit/config.py b/lib/streamlit/config.py index 24b533c748b..bcf7606638b 100644 --- a/lib/streamlit/config.py +++ b/lib/streamlit/config.py @@ -630,6 +630,48 @@ def _logger_enable_rich() -> bool: type_=str, ) +_DEFAULT_ALLOWED_MESSAGE_ORIGINS = [ + # Community-cloud related domains. + ...
3
3
2
[{"id": "G0", "claim": "The type-ignore comments use `ty: ignore` instead of `type: ignore`, a prefix type checkers do not recognize, so they will not suppress the intended type-checking warnings.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The P...
null
streamlit__streamlit__13837
streamlit/streamlit
13,837
defect
e6947d3d238723d7787825577752f3a566249a25
2167a4e2f538c31a4470fc1de4a86ccf1ca0783b
Fix `st.select_slider` `format_func` regression in AppTest
## Describe your changes Fixed a regression in select_slider where format_func was being applied to options that were already formatted strings from the proto during subsequent AppTest runs. The issue occurred because self.options already contains formatted strings, so applying format_func again caused a ValueError. ...
diff --git a/lib/streamlit/testing/v1/element_tree.py b/lib/streamlit/testing/v1/element_tree.py index a7f2e903c27..78dcc0c127e 100644 --- a/lib/streamlit/testing/v1/element_tree.py +++ b/lib/streamlit/testing/v1/element_tree.py @@ -1157,10 +1157,10 @@ def set_value(self, v: T | Sequence[T]) -> SelectSlider[T]: @p...
2
1
0
[{"id": "G0", "claim": "The `import streamlit as st` inside the test script function is redundant because the module was already imported at the top of the file, and the line should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
streamlit__streamlit__13845
streamlit/streamlit
13,845
defect
b94d8fed465d0b54bbf28cedeb0db50c481782e8
af48a00e58c25fd55fcbd940dea2331df7c3d920
Bind widgets to query params - FE hooks & `color_picker` support
## Describe your changes This PR introduces a reusable frontend hook for query‑param binding and adds the `bind` parameter to `st.color_picker` to enable two-way sync between widget values and URL query parameters. - **URL seeding** - Widget initializes from URL on page load - **URL sync** - user interaction updat...
diff --git a/e2e_playwright/st_color_picker.py b/e2e_playwright/st_color_picker.py index bbce5982597..ccf9a568d42 100644 --- a/e2e_playwright/st_color_picker.py +++ b/e2e_playwright/st_color_picker.py @@ -124,3 +124,21 @@ def test_fragment(): st.session_state.runs = 0 st.session_state.runs += 1 st.write("Runs:",...
12
3
0
[{"id": "G0", "claim": "The new invalid-URL-value detection in _seed_widget_from_url may wrongly treat valid inputs as invalid (when a deserializer normalizes values, e.g. bound_color=000000 -> #000000 equal to the default, or for index-based widgets) and its early return prevents _auto_correct_url_if_needed from corre...
null
streamlit__streamlit__13851
streamlit/streamlit
13,851
defect
572d8d8b48a0f584ac1f14dd5f60176ffd5fa38e
be7d239ac07f88314c7401075f4f3988303d0e7c
[DynamicContainers] foundational work adding new delta generators
## Describe your changes Adds new delta generators following the pattern of StatusContainer to support introducing new state parameters for Expander, Tabs and Popover in an isolated way. ## Screenshot or video (only for visual changes) ## GitHub Issue Link (if applicable) ## Testing Plan - type tests ad...
diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py index f0a474a20b4..ca700870b03 100644 --- a/lib/streamlit/__init__.py +++ b/lib/streamlit/__init__.py @@ -79,12 +79,22 @@ StatusContainer as _StatusContainer, ) from streamlit.elements.lib.dialog import Dialog as _Dialog +from streamlit.elements....
5
4
0
[{"id": "G0", "claim": "The tabs() docstring says \"list of TabContainers\" while the signature is Sequence[TabContainer] and the runtime returns a tuple, so the Returns wording should be updated to Sequence/tuple to avoid misleading users and generated docs.", "category": "documentation", "verdict": "supported", "prio...
null
streamlit__streamlit__13867
streamlit/streamlit
13,867
defect
572d8d8b48a0f584ac1f14dd5f60176ffd5fa38e
f29c5b0a71c2ba1f602d4f3f792ea829cd4f6d5d
[DynamicContainers] foundational work adding .open properties
## Describe your changes Adds the `.open` properties to the new delta generators for Expander, Tabs and Popover. Adds a new proto property for Popover to send open state to FE. ## Screenshot or video (only for visual changes) ## GitHub Issue Link (if applicable) ## Testing Plan - Type tests. - Unit te...
diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py index f0a474a20b4..ca700870b03 100644 --- a/lib/streamlit/__init__.py +++ b/lib/streamlit/__init__.py @@ -79,12 +79,22 @@ StatusContainer as _StatusContainer, ) from streamlit.elements.lib.dialog import Dialog as _Dialog +from streamlit.elements....
4
2
1
[{"id": "G0", "claim": "The ExpanderContainer.open docstring should make explicit that state tracking is activated when on_change is set to \"ignore\" (and more generally to \"rerun\" or a callback), since \"on_change was not set\" alone is misleading.", "category": "documentation", "verdict": "supported", "priority": ...
null
streamlit__streamlit__13878
streamlit/streamlit
13,878
defect
e8185986afbacc25f95b7f787037aaedfb0f47a5
36e7a0e329bfffeb8c211994b744bf55e66bcb88
`MainMenu` accessibility improvements
## Describe your changes Adds full WAI-ARIA menu pattern support to the `MainMenu`, including keyboard navigation, proper ARIA semantics, and focus management. **Keyboard navigation** - **Open menu**: `Enter` / `Space` on the menu button (handles legacy `Spacebar` / `Space` key values) - **Navigate items**: `Arro...
diff --git a/e2e_playwright/main_menu_test.py b/e2e_playwright/main_menu_test.py index 493cf8a376b..a2ff7c08ac7 100644 --- a/e2e_playwright/main_menu_test.py +++ b/e2e_playwright/main_menu_test.py @@ -167,6 +167,117 @@ def test_renders_clear_cache_dialog_properly( assert_snapshot(dialog.get_by_role("dialog"), name...
11
11
5
[{"id": "G0", "claim": "The Tab/Shift+Tab case calls preventDefault() and then forces focus back to the trigger, which makes Tab/Shift+Tab unable to move focus out of the menu; per the WAI-ARIA menu-button pattern Tab should close the menu and let focus move to the next/previous control, without preventDefault and with...
null
streamlit__streamlit__13887
streamlit/streamlit
13,887
defect
b8afd515a1412c6891945adb03b10bf077301ea2
6724d43a17321a52a3e34b96e8991a29464a0afe
Auto-escape some markdown syntax in markdown labels
## Describe your changes This PR fixes issue #7359 where widget labels containing markdown syntax characters (-, +, *, #, >, 1.) would render as empty labels because the markdown parser was interpreting them as list markers, headings, or blockquotes which are then stripped for labels. The fix escapes these markdo...
diff --git a/e2e_playwright/st_button.py b/e2e_playwright/st_button.py index 55c2f75f0c0..4a12c294dff 100644 --- a/e2e_playwright/st_button.py +++ b/e2e_playwright/st_button.py @@ -141,3 +141,8 @@ def on_click(x: int, y: int) -> None: icon_position="right", key="icon_right_material", ) + +# Test for markdown...
4
1
0
[{"id": "G0", "claim": "The inline comment says \"*bold label*\" but single asterisks create italic/emphasis text in markdown, not bold, so the comment should read \"*italic label*\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer sug...
null
streamlit__streamlit__13888
streamlit/streamlit
13,888
defect
c4182a9d8403d8ba80ad6b8e35e2c9c42a9b04cf
f3e158b18eca38583bb2059693f789c978a51855
[DynamicContainers] Dynamic Expanders
Demo App: https://dynamic-expander.streamlit.app/ ## Describe your changes Adds `key` and `on_change` parameters to `st.expander`, enabling stateful dynamic expanders that persist user toggle state across reruns. Reworks the frontend animation system with a `useDetailsAnimation` hook and `animateHeight` utility. ...
diff --git a/e2e_playwright/st_expander.py b/e2e_playwright/st_expander.py index a8272cd49c3..c8e5e6ba810 100644 --- a/e2e_playwright/st_expander.py +++ b/e2e_playwright/st_expander.py @@ -105,3 +105,108 @@ def update_value(): """ st.expander("With code block:\n" + code_block) + +# =================================...
7
2
1
[{"id": "G0", "claim": "The expander docstring note that all content within the expander is computed and sent to the frontend even when closed should be updated or qualified, because with on_change=\"rerun\" content can be skipped via the .open guard.", "category": "documentation", "verdict": "uncertain", "priority": "...
null