krotname
krotname
One more regression case is a surrogate pair split across appends. The [pending `highSurrogate` state](https://github.com/spring-projects/spring-boot/blob/4746ad6e0c9b8aca29a2850c1e0360e99fc030e9/core/spring-boot/src/main/java/org/springframework/boot/json/AppendableByteArray.java#L81-L88) can join code units from two different serializations: ```java byte[][] innerBytes = new byte[1][]; WritableJson...
Following the review of #61366, I'd like to agree on a smaller TUI i18n design before submitting the implementation in stages. @kommander, would this first step fit the intended direction?...
A list of hardcoded strings grouped by surface would be useful, especially host components and built-in sidebar plugins; Mini can be a separate group. Could you share it here, @ZuzeTt?...
I checked the gist's JSON total (878 surface/string pairs) and spot-checked the sidebar and Mini locations against `26f2522`; those samples match the source. This is useful for planning the extraction....
For those reused command IDs, I'd key translations by the displayed action and surface: for example, `diff.close`, `form.dismiss`, and `permission.reject` can remain distinct while all three handlers keep the existing...
The inventory feedback now has a concrete, tested follow-up. I prepared the four complete `sidebar.context.*` messages (`Context`, `{count} tokens`, `{percent}% used`, `{amount} spent`) with typed named parameters on [tui-i18n-sidebar](https://github.com/krotname/opencode/commit/f6a0a18ba09f6187f1b03884ef5c011f35228d6b), based...
Addressed the formatting and plural points from https://github.com/anomalyco/opencode/issues/37216#issuecomment-6943201338 in the preparation branch: https://github.com/krotname/opencode/commit/3878c0a1665655fdef121c4e0bf458835168c2e0. - The sidebar passes the raw token count to `plural("sidebar.context.tokens", count)`. Selection uses `Intl.PluralRules` for the active...
Addressed the remaining recommendations from https://github.com/anomalyco/opencode/issues/37216#issuecomment-6943431510 in https://github.com/krotname/opencode/commit/3bdfd7e96cae35727e137cd988298cb8fc0c5d89. - `en.ts` explicitly lists the plural base in `PluralKey`, with a comment explaining the boundary. Ordinary keys ending in `.one` or `.other`...
Thanks for the thorough review and for re-checking `3bdfd7e`, @ZuzeTt. I've noted the two optional suggestions. We'll wait for the maintainers' design/scope decision on #63978 before opening the remaining TUI...
这里有个实现时容易反过来的优先级:示例要求的是「配置文件 > 环境变量 > 默认值」,而 Viper 默认是「环境变量 > 配置文件」。当前 `initConfig()` 使用 Viper,因此直接加 `AutomaticEnv()` 会覆盖文件里已经显式设置的值,和示例的 fallback 语义不同。 如果保持这个需求,回填应按配置键是否存在判断,而不能按 Go 的零值判断,否则显式的 `false`、`0` 或空字符串也可能被当作“未配置”。回归用例可以先覆盖三种情况:文件有 `listen` 时保持文件值;缺少 `listen` 时使用 `HYSTERIA_LISTEN`;嵌套键 `acl.file` 能正确对应 `HYSTERIA_ACL_FILE`。