Files
Mohamed Boudra 5d70ab2ab8 fix(app): restore character-paced streaming replies (#5013)
* fix(app): restore character-paced streaming reveal

Restore the v0.8 character reveal model and remove the word-level fade implementation so streamed assistant and reasoning text remains opaque, grapheme-safe, and immediately completes when a turn ends.

* fix(android): preserve inverted timeline selection

React Native's prebuilt Android library does not consume source patches under node_modules. Register the compiled scroll manager before the core package so inverted child-reveal calculations leave focus and text selection in place while normal and explicit scrolling remain unchanged.
2026-09-17 18:32:12 +02:00

22 lines
784 B
JavaScript

const { withMainApplication } = require("expo/config-plugins");
const PACKAGE_LIST = "PackageList(this).packages.apply {";
const REGISTRATION = "add(0, sh.paseo.scroll.PaseoScrollPackage())";
function configureScrollPackage(contents) {
if (contents.includes(REGISTRATION)) return contents;
if (!contents.includes(PACKAGE_LIST)) {
throw new Error(
"Could not register Android scroll behavior before React Native's core package",
);
}
return contents.replace(PACKAGE_LIST, `${PACKAGE_LIST}\n ${REGISTRATION}`);
}
module.exports = (config) =>
withMainApplication(config, (mod) => {
mod.modResults.contents = configureScrollPackage(mod.modResults.contents);
return mod;
});
module.exports.configureScrollPackage = configureScrollPackage;