How do I change the scroll speed? #984

Closed
opened 2026-02-16 17:28:59 -05:00 by yindo · 20 comments
Owner

Originally created by @willleeney on GitHub (Jul 30, 2025).

Originally assigned to: @adamdotdevin, @rekram1-node on GitHub.

Error: Config file at ~/.config/opencode/opencode.json is invalid
↳ Unrecognized key(s) in object: 'scroll_speed'

Please can you tell me how I change the scroll speed?

I can see something was merged recently that allows me to set the speed but I don't know how to change that setting?

Originally created by @willleeney on GitHub (Jul 30, 2025). Originally assigned to: @adamdotdevin, @rekram1-node on GitHub. Error: Config file at ~/.config/opencode/opencode.json is invalid ↳ Unrecognized key(s) in object: 'scroll_speed' Please can you tell me how I change the scroll speed? I can see something was merged recently that allows me to set the speed but I don't know how to change that setting?
yindo closed this issue 2026-02-16 17:28:59 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jul 30, 2025):

I know we addressed in another thread but just copying to say so here too:

You have to edit the toml file this is only for tui. it isnt exposed intentionally and adam will likeky add an easier way to set in future. toml is at: ~/.local/state/opencode/tui and you set scroll speed like (must be int):

scroll_speed = 3
@rekram1-node commented on GitHub (Jul 30, 2025): I know we addressed in another thread but just copying to say so here too: > You have to edit the toml file this is only for tui. it isnt exposed intentionally and adam will likeky add an easier way to set in future. toml is at: `~/.local/state/opencode/tui` and you set scroll speed like (must be int): ```toml scroll_speed = 3 ```
Author
Owner

@diocletiann commented on GitHub (Jul 31, 2025):

scroll_speed = 3

Thanks, scroll_speed = 1 works. 3 was super disorienting in a tui.

Why is inertial scrolling disabled? It doesn't behave like other tuis (claude code for example).

@diocletiann commented on GitHub (Jul 31, 2025): > scroll_speed = 3 Thanks, scroll_speed = 1 works. 3 was super disorienting in a tui. Why is inertial scrolling disabled? It doesn't behave like other tuis (claude code for example).
Author
Owner

@rekram1-node commented on GitHub (Jul 31, 2025):

you would have to ask Adam, I am not sure but Idrc either way

@rekram1-node commented on GitHub (Jul 31, 2025): you would have to ask Adam, I am not sure but Idrc either way
Author
Owner

@nikhilmaddirala commented on GitHub (Aug 8, 2025):

I know we addressed in another thread but just copying to say so here too:

You have to edit the toml file this is only for tui. it isnt exposed intentionally and adam will likeky add an easier way to set in future. toml is at: ~/.local/state/opencode/tui and you set scroll speed like (must be int):

scroll_speed = 3

Hi @rekram1-node - I don't see any .toml file or a tui dir:

❯ ls ~/.local/share/opencode/
auth.json       bin             log             project

Any idea how I can address this?

@nikhilmaddirala commented on GitHub (Aug 8, 2025): > I know we addressed in another thread but just copying to say so here too: > > > You have to edit the toml file this is only for tui. it isnt exposed intentionally and adam will likeky add an easier way to set in future. toml is at: `~/.local/state/opencode/tui` and you set scroll speed like (must be int): > > scroll_speed = 3 Hi @rekram1-node - I don't see any `.toml` file or a `tui` dir: ```bash ❯ ls ~/.local/share/opencode/ auth.json bin log project ``` Any idea how I can address this?
Author
Owner

@nikhilmaddirala commented on GitHub (Aug 8, 2025):

Also, I find that scroll speed varies by terminal. When I'm using the VS Code integrated terminal, I find scrolling to be too fast. But when I use Ghostty, the speed is fine. I'm on MacOS.

@nikhilmaddirala commented on GitHub (Aug 8, 2025): Also, I find that scroll speed varies by terminal. When I'm using the VS Code integrated terminal, I find scrolling to be too fast. But when I use Ghostty, the speed is fine. I'm on MacOS.
Author
Owner

@rekram1-node commented on GitHub (Aug 8, 2025):

@nikhilmaddirala you are looking in wrong dir, run cat ~/.local/state/opencode/tui

@rekram1-node commented on GitHub (Aug 8, 2025): @nikhilmaddirala you are looking in wrong dir, run `cat ~/.local/state/opencode/tui`
Author
Owner

@elvstejd commented on GitHub (Aug 11, 2025):

Same as @nikhilmaddirala. On MacOS and speed is different depending on the terminal I'm using.

Ghostty speed is just right.
Stock terminal is fine, but on the faster side.
Cursor (VS code) terminal is very sensitive and way too fast. Annoying because it's the one i use 70% of time.

Haven't touched the scroll_speed setting yet, but worried it might fix one and make the others too slow in comparison.

@elvstejd commented on GitHub (Aug 11, 2025): Same as @nikhilmaddirala. On MacOS and speed is different depending on the terminal I'm using. Ghostty speed is just right. Stock terminal is fine, but on the faster side. Cursor (VS code) terminal is very sensitive and way too fast. Annoying because it's the one i use 70% of time. Haven't touched the `scroll_speed` setting yet, but worried it might fix one and make the others too slow in comparison.
Author
Owner

@rekram1-node commented on GitHub (Aug 11, 2025):

@elvstejd I had same experience but I've set scroll_speed to 1 and ghostty still feels fine for me, but maybe that's just me

@rekram1-node commented on GitHub (Aug 11, 2025): @elvstejd I had same experience but I've set scroll_speed to 1 and ghostty still feels fine for me, but maybe that's just me
Author
Owner

@elvstejd commented on GitHub (Aug 11, 2025):

@rekram1-node Ah, that did it actually. Much better, thanks!

@elvstejd commented on GitHub (Aug 11, 2025): @rekram1-node Ah, that did it actually. Much better, thanks!
Author
Owner

@adamdotdevin commented on GitHub (Aug 13, 2025):

should we just default to 1? cc @rekram1-node

@adamdotdevin commented on GitHub (Aug 13, 2025): should we just default to 1? cc @rekram1-node
Author
Owner

@rekram1-node commented on GitHub (Aug 13, 2025):

@adamdotdevin I think so yeah

@rekram1-node commented on GitHub (Aug 13, 2025): @adamdotdevin I think so yeah
Author
Owner

@adamdotdevin commented on GitHub (Aug 13, 2025):

1 felt pretty slow to me in ghostty, defaulting to 2!

@adamdotdevin commented on GitHub (Aug 13, 2025): 1 felt pretty slow to me in ghostty, defaulting to 2!
Author
Owner

@rekram1-node commented on GitHub (Aug 13, 2025):

sounds good 👍

@rekram1-node commented on GitHub (Aug 13, 2025): sounds good 👍
Author
Owner

@willleeney commented on GitHub (Aug 13, 2025):

Can you add it as a setting not as the tui setting because that keeps on getting overwritten for me.

@willleeney commented on GitHub (Aug 13, 2025): Can you add it as a setting not as the tui setting because that keeps on getting overwritten for me.
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

Hmm @adamdotdevin what do you think?

@rekram1-node commented on GitHub (Aug 14, 2025): Hmm @adamdotdevin what do you think?
Author
Owner

@adamdotdevin commented on GitHub (Aug 15, 2025):

Hmm @adamdotdevin what do you think?

yeah, but i wonder if we need a tui top-level key under config for things like this; do you mind taking a stab at this, @rekram1-node?

@adamdotdevin commented on GitHub (Aug 15, 2025): > Hmm [@adamdotdevin](https://github.com/adamdotdevin) what do you think? yeah, but i wonder if we need a `tui` top-level key under config for things like this; do you mind taking a stab at this, @rekram1-node?
Author
Owner

@rekram1-node commented on GitHub (Aug 15, 2025):

yes @adamdotdevin will do

@rekram1-node commented on GitHub (Aug 15, 2025): yes @adamdotdevin will do
Author
Owner

@felixmccuaig commented on GitHub (Nov 8, 2025):

@adamdotdevin @rekram1-node scroll is absolute garbage on macbook pro. Makes it pretty much unusable compared to claude code, it would be good to allow users to configure this at startup like claude code startup config.

@felixmccuaig commented on GitHub (Nov 8, 2025): @adamdotdevin @rekram1-node scroll is absolute garbage on macbook pro. Makes it pretty much unusable compared to claude code, it would be good to allow users to configure this at startup like claude code startup config.
Author
Owner

@rekram1-node commented on GitHub (Nov 8, 2025):

@felixmccuaig what terminal are u using because different ones have different behaviors also is it too fast for u or too slow?

@rekram1-node commented on GitHub (Nov 8, 2025): @felixmccuaig what terminal are u using because different ones have different behaviors also is it too fast for u or too slow?
Author
Owner

@connorads commented on GitHub (Nov 20, 2025):

@felixmccuaig I have the same issue. I'm often running Claude Code or OpenCode from VS Code terminal. Scroll speed is fine in CC but painfully slow in OC. I updated the scroll_speed in ~/.config/opencode/opencode.json by adding a "tui": { "scroll_speed": 10 } section, which made it better after a restart.

@connorads commented on GitHub (Nov 20, 2025): @felixmccuaig I have the same issue. I'm often running Claude Code or OpenCode from VS Code terminal. Scroll speed is fine in CC but painfully slow in OC. I updated the `scroll_speed` in `~/.config/opencode/opencode.json` by adding a `"tui": { "scroll_speed": 10 }` section, which made it better after a restart.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#984